Skip to content

Add admin stats list route - #1018

Merged
tudddorrr merged 2 commits into
developfrom
admin-stats-list-route
Aug 15, 2026
Merged

Add admin stats list route#1018
tudddorrr merged 2 commits into
developfrom
admin-stats-list-route

Conversation

@tudddorrr

@tudddorrr tudddorrr commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

New admin API endpoint for listing game stats

  • Added a GET /admin/v1/game-stats route accessible via admin API keys with the READ_STATS scope.
  • The endpoint supports the same query parameters as the existing protected list route: withMetrics, metricsStartDate, and metricsEndDate.

Shared handler extraction

  • The game stat list logic was extracted from the protected route handler into a reusable listStatsHandler function.
  • Both the protected (dashboard) and admin API routes now delegate to this shared handler, avoiding duplication.

Admin router updates

  • Registered the new list route on the game stat admin router.
  • Changed the docsKey from 'adminGameStats' to 'GameStatAdminAPI'.

@tudddorrr tudddorrr added the enhancement New feature or request label Aug 15, 2026
@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.33%. Comparing base (bd71d50) to head (0bd9977).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1018   +/-   ##
========================================
  Coverage    98.33%   98.33%           
========================================
  Files          439      440    +1     
  Lines         7248     7251    +3     
  Branches       972      972           
========================================
+ Hits          7127     7130    +3     
  Misses          49       49           
  Partials        72       72           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tudddorrr
tudddorrr merged commit 630a7df into develop Aug 15, 2026
10 checks passed
@tudddorrr
tudddorrr deleted the admin-stats-list-route branch August 15, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant