Feature: PATCH /admin/players/{id}/visibility toggle #189
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#189
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
Split from westside-app#111. Unblocks public teams page — 78 players with is_public=False means empty rosters.
Repo
forgejo_admin/basketball-apiUser Story
As an admin (Marcus)
I want an API endpoint to toggle player visibility
So that players appear on the public teams page
Context
Migration 024 added
is_publicboolean to players (defaults False). GET /public/teams filters by is_public=True. Currently 0 players are public, so the teams page shows empty rosters. This endpoint lets the admin UI toggle visibility.File Targets
Files the agent should modify:
src/basketball_api/routes/admin.py— add PATCH /admin/players/{id}/visibility endpointtests/— add test for the new endpointFiles the agent should NOT touch:
src/basketball_api/routes/public.py— already works correctlysrc/basketball_api/models.py— is_public column already existsAcceptance Criteria
{"is_public": true/false}Test Expectations
Constraints
Checklist
Related
project-westside-basketballstory:WS-S6