Skip to content

feat(analytics): move cli telemetry stats under admin analytics - #260

Merged
vigneshrajsb merged 2 commits into
mainfrom
admin-cli-telemetry-analytics
Oct 12, 2026
Merged

vigneshrajsb merged 2 commits into
mainfrom
admin-cli-telemetry-analytics

Conversation

@vigneshrajsb

Copy link
Copy Markdown
Contributor

Description

  • Moves CLI usage stats to GET /api/v2/admin/analytics/telemetry, next to the other admin analytics endpoints, and requires the administrator role.
  • Removes GET /api/v2/telemetry/stats. Query parameters and the response shape are unchanged.
  • Responses are private, no-store, like the rest of admin analytics.
  • Deploy before the matching UI change; until the UI is updated, its CLI usage tab cannot load data.

Test plan

  • Route tests cover admin access, 401 for unauthenticated and 403 for non-admin requests, no-store headers, and query validation. Full Jest suite and lint pass.
  • In a preview environment, check an admin gets CLI stats from the new endpoint and a non-admin gets 403.

Serve GET /api/v2/admin/analytics/telemetry for administrators only, in
line with the other admin analytics endpoints, and remove
GET /api/v2/telemetry/stats. Responses are no-store like the rest of
admin analytics.
@vigneshrajsb
vigneshrajsb marked this pull request as ready for review October 12, 2026 22:45
@vigneshrajsb
vigneshrajsb requested a review from a team as a code owner October 12, 2026 22:45
@vigneshrajsb
vigneshrajsb merged commit 9f4dba3 into main Oct 12, 2026
1 check passed
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.

1 participant