Bug: /public/teams endpoint may not filter by is_public #254
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#254
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
Discovered during westside-landing#111 validation. The admin toggle was built but the public endpoint may not respect it.
Repo
forgejo_admin/basketball-apiWhat Broke
The
/public/teamsAPI returns 37 players across 7 teams. The response does not include anis_publicfield, and it's unclear whether the endpoint filters byPlayer.is_public. If it doesn't, then the admin bulk visibility toggle (westside-landing#111) has no effect on the public /teams page.Repro Steps
curl -s https://basketball-api.tail5b443a.ts.net/public/teams | python3 -m json.toolis_publicfield in responseis_public=True?Expected Behavior
/public/teamsshould only return players whereis_public=True. Teams with zero public players should be excluded.Environment
GET /public/teamsAcceptance Criteria
/public/teamsfilters players byis_public=Trueis_publicvia #111 UI reflects on public /teams pageRelated
forgejo_admin/westside-landing#111— admin toggle (merged)project-westside-basketball