Bug: Public teams endpoint missing division field + school name mismatch #211
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#211
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
Bug
Lineage
Standalone — discovered during session investigating westside-app teams page blank render. Companion to
forgejo_admin/westside-appteams unwrap bug.Repo
forgejo_admin/basketball-apiWhat Broke
GET /public/teamsreturnsPublicTeamResponsewithoutdivisionorage_groupfields. The westside-app frontend filters teams by program (kings=boys, queens=girls) using thedivisionfield — since it's missing, all teams fail the filter and the page renders empty.Additionally,
PublicPlayerResponseusescurrent_schoolbut westside-app readsplayer.school— school info doesn't display.Affected schema in
src/basketball_api/routes/public.py:Repro Steps
curl https://basketball-api.tail5b443a.ts.net/public/teamsdivisionorage_groupfieldcurrent_schoolnotschoolExpected Behavior
Each team in the response includes
division(boys/girls) andage_group. Player objects useschoolfield name matching frontend expectation.Environment
Acceptance Criteria
GET /public/teamsreturnsdivisionper teamGET /public/teamsreturnsage_groupper teamschoolfield name (or alias)Related
project-westside-basketball— project this affectsforgejo_admin/westside-app— companion frontend fix for response unwrapping