Show the total count of banned users #1013
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com#1013
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?
The banned-users administration page should expose the size of the current banned-user collection in its card header.
The count belongs to the page data supplied by the existing admin route/controller and should be rendered by the existing Blade view.],
scope :[
Scope
/admin/users/banned.Acceptance Criteria
/admin/users/bannedcard header displays the total number of banned users.Test Coverage Required
Progress Checklist
Show Total Count of Banned Usersto Show the total count of banned usersImplemented in merged PR #1021 (master revision
99451d50). The banned-users card header now displaysTotal banned users: N, using the existing paginator total without another database query. The total spans all pages, includes flag-only and role-only bans and soft-deleted banned accounts, and counts accounts with both markers only once. Empty results show zero. Existing listing, pagination, edit links, authorization, and ban actions are preserved.Validation: 32 feature tests passed with 165 assertions, covering populated and empty headers, pagination, user search, and ban actions; Pint, PHPStan, and diff checks passed. All progress checklist items are complete. No schema, dependency, or frontend asset changes are required. Deployment to development and production follows separately.
Deployed merged master revision
99451d50b3aafe66ffbc1bd761a2bbda98a7e5bc(PR #1021) to development and production. Both release manifests now end in+pr1021-99451d50, and SHA-256 checks confirm the controller and banned-users Blade template match the merged source. Read-only live checks verified that the controller total matches the banned-user query and that the count renders inside the card header; Blade compilation and view-cache rebuilds passed. Unrelated application files, assets, and configuration were checksum-guarded. No migrations, dependency updates, or account/domain-data writes were performed.Development verification initially triggered automatic rollbacks because the smoke harness blocked a routine shared-header cache write and then encountered a stale compiled view. The harness now uses in-memory cache and rebuilds compiled views before rendering; the same corrected procedure passed on both environments. No application-code changes were needed.
Rollback backups retained:
/home/mvgldev/deploy-backups/pr1021-99451d50-j28ztgia/home/mvgl/deploy-backups/pr1021-99451d50-691s0uvwEach deployment account retains
~/deploy-staging/pr1021-99451d50/deploy.py. To restore, run it as the matching account with~/binon PATH and--rollback <backup-path>; it restores the prior controller, template, and release manifest and rebuilds the view cache.HTTPS smoke checks passed: development and production home pages return 200, production login returns 200, and unauthenticated requests to
/admin/users/bannedredirect to each environment's login page. PHP-FPM has OPcache timestamp validation enabled with a two-second revalidation interval, so the new PHP code is picked up automatically; no manual reload was needed.