Add team_ids to AccountPlayerResponse for parent schedule filtering #333
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#333
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
User Story
story:WS-S28As a parent, I want to see my child's team practice schedule so I know when and where to take them.Lineage
story:WS-S28arch:basketball-apiRepo
forgejo_admin/basketball-apiContext
The
GET /account/playersendpoint returnsteam_name(derived from the first team) but notteam_idorteam_ids. The parent dashboard (#214) needs team IDs to filter/public/scheduleclient-side and show each player's team schedule. Players can be on multiple teams via theplayer_teamsM2M table.File Targets
src/basketball_api/routes/account.py— addteam_ids: list[int]toAccountPlayerResponseand populate fromplayer.teamsAcceptance Criteria
GET /account/playersresponse includesteam_ids: list[int]per playerteam_namefield unchanged (backwards compatible)Test Expectations
Constraints
Checklist
team_ids: list[int]field toAccountPlayerResponse[t.id for t in player.teams]Related
/coaches/mewhich already has team IDs)Validation: PASS
Tiers executed: Tier 1 (CI tests), Tier 3 (Production)
Validation note:
validation-333-2026-04-045 checks: 5 PASS, 0 FAIL
team_ids: list[int]in response schemateam_namebackwards compatibleEvidence: Pipeline #335 (merge) green, Pipeline #349 (latest main) 817 passed/0 failed, live OpenAPI schema confirmed, pod running 0 restarts, regression endpoints healthy.