feat: include is_public in admin players list response #246
No reviewers
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
ldraney/basketball-api!246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "111-player-visibility-api"
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?
Summary
The GET /admin/players endpoint now includes
is_publicin each player item, enabling the westside-app admin UI to display current visibility state and toggle it.Changes
src/basketball_api/routes/admin.py— Addedis_public: boolfield toAdminPlayerItemmodel and includedplayer.is_publicin the response constructiontests/test_admin_spa.py— Addedis_publicto the expected response fields assertionTest Plan
pytest tests/test_admin_spa.py— 8 passedpytest tests/test_player_visibility.py tests/test_bulk_visibility.py— 33 passedReview Checklist
Related Notes
Related
Self-Review
Minimal change, low risk. Two files touched:
AdminPlayerItem— addedis_public: boolfield to the Pydantic modelis_public=player.is_publicto theresults.append()call"is_public"to thetest_response_fieldsexpected fields listAll 33 visibility tests pass. All 8 admin SPA tests pass. Full suite: 430 passed, 1 pre-existing failure (missing
groupme_sdk— unrelated).No issues found.