Show game usage counts on the admin edit screen #937
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
javascript
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com#937
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Administrators need a quick summary of whether a game is used by lists, wishlists, or favorites before disabling or replacing it.
The requested data is aggregate usage information; individual user names are out of scope.
Scope
Acceptance Criteria
Test Coverage Required
Progress Checklist
The ability to see if a game is on someones list, wishlist or favorites when we edit games.to Show game usage counts on the admin edit screenImplemented in merged PR #989 (merge commit
7cdee59c).The admin game-edit form now shows Lists, Wishlists, and Favorites totals immediately above the Save/Disable/Restore controls. Totals count distinct users per category, exclude soft-deleted associations, and display zero for unused games. The summary contains no associated user names, identifiers, or links. Existing staff permissions, validation, and disable/merge/restore behavior are preserved; disabled games remain editable.
Verification: 26 focused and admin-game regression tests passed (266 assertions), including duplicates, deleted associations, other games, disabled games, privacy, and access restrictions. Pint, PHPStan, frontend build, and diff checks passed. All five progress checklist items are complete. No database migrations or dependency changes are required.
Deployment complete: merge revision
7cdee59c639a795b7d79ff3b951fec72b308e303is deployed to development and production.Both hosts passed PHP syntax checks, Blade compilation, deployed-file checksum verification, and release-manifest verification. Existing development overlays were preserved. Development HTTP and served-asset checks passed. Production loaded normally in the browser and redirected the protected admin edit URL to login; the generic scripted HTTP probe received 403. No database migrations or dependency installs were needed.
Rollback backups:
/home/mvgldev/deploy-backups/issue937-7cdee59c-fhvulpcm/home/mvgl/deploy-backups/issue937-7cdee59c-3ocdwtd8All progress checklist items remain checked; the issue is closed with
status/done.Screenshot.