Skip to content

Add admin stats delete route - #1021

Merged
tudddorrr merged 1 commit into
developfrom
admin-stats-delete-route
Aug 15, 2026
Merged

Add admin stats delete route#1021
tudddorrr merged 1 commit into
developfrom
admin-stats-delete-route

Conversation

@tudddorrr

@tudddorrr tudddorrr commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Admin API for game stat deletion

  • Added a new DELETE endpoint at /admin/v1/game-stats/:id allowing admin API keys to delete game stats, gated by the WRITE_STATS scope.

Shared deletion logic

  • Extracted the stat deletion handler from the protected route into a reusable deleteStatHandler function that accepts either a User or AdminAPIKey as the actor, enabling both the protected and admin routes to share the same business logic (activity logging, entity removal, cache invalidation).

@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.35%. Comparing base (3a1e89f) to head (d480839).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1021      +/-   ##
===========================================
+ Coverage    98.33%   98.35%   +0.01%     
===========================================
  Files          443      444       +1     
  Lines         7274     7276       +2     
  Branches       976      976              
===========================================
+ Hits          7153     7156       +3     
  Misses          49       49              
+ Partials        72       71       -1     

☔ 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 767a890 into develop Aug 15, 2026
10 checks passed
@tudddorrr
tudddorrr deleted the admin-stats-delete-route branch August 15, 2026 09:51
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