Feature: Bulk toggle is_public for multiple players #217
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#217
Loading…
Add table
Add a link
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?
Type
Feature
Lineage
Standalone — discovered during session validating public teams page. 55 players, 0 public. Admin must PATCH each one individually.
Repo
forgejo_admin/basketball-apiUser Story
As an admin
I want to bulk-set player visibility for multiple players at once
So that I can populate the public teams page without 55 individual API calls
Context
is_publicdefaults tofalse(migration 024). The only way to toggle visibility isPATCH /admin/players/{id}/visibility— one player at a time. With 55 players, Marcus needs a bulk endpoint. Current data: 38 complete players ready to go public, 17 incomplete.File Targets
Files to modify:
src/basketball_api/routes/admin.py— add bulk visibility endpointtests/test_admin.py— add tests for bulk endpointFiles NOT to touch:
routes/public.py— already handlesis_publicfiltering correctlymodels.py—is_publiccolumn already existsAcceptance Criteria
PATCH /admin/players/bulk-visibilityaccepts{player_ids: [1,2,3], is_public: true}Test Expectations
pytest tests/test_admin.py -vConstraints
toggle_player_visibilityendpointChecklist
Related
project-westside-basketballforgejo_admin/westside-app #143— teams page fix depends on public players existing