Skip to content

Conversation

@smstone0
Copy link
Member

@smstone0 smstone0 commented Mar 19, 2025

Introduces a new Copilot interim page to display key metrics on IDE code completions and Copilot Chat following updates to the Github API endpoints. The page also displays the seat information which was unaffected by the API change.

@smstone0 smstone0 requested a review from TotalDwarf03 March 19, 2025 16:24
Copy link
Contributor

@TotalDwarf03 TotalDwarf03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor change to make regarding the endpoint URLs. I'm approving in advance so you can crack on tomorrow.

Once the URLs have been sorted, this can be merged 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change ONSDigital to use the org variable

rest.get(f"/orgs/{org}/copilot/metrics")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this wasn't an interim, something like this would need to be in its own function due to repeated logic.

No action needed as this is an interim, just something to be aware of in future

@smstone0 smstone0 merged this pull request into master Mar 19, 2025
4 checks passed
@smstone0 smstone0 deleted the copilot-interim branch March 19, 2025 16:55
TotalDwarf03 added a commit that referenced this pull request Aug 22, 2025
* Setup interim page for soph

* Patch: Modify the dashboard to use example data.

* Add interim notice to README

* Set code completions and copilot chat metrics with placeholder values

* Get usage data from API and initial commit for generating datasets

* Group datasets and display metrics on dashboard

* Add seat information

* Move slider

* Use org variable in endpoints

---------

Co-authored-by: Kieran Pritchard <kieran.pritchard@ons.gov.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants