Add jersey fields to AdminPlayerItem response #248
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#248
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
Decomposed from
forgejo_admin/westside-landing#183. Backend blocker — CRM can't display jersey data until the API returns it.Repo
forgejo_admin/basketball-apiUser Story
As Marcus (admin)
I want the admin players API to return jersey fields
So that the CRM frontend can display who ordered jerseys
Context
The
Playermodel hasjersey_option,jersey_size,jersey_number, andjersey_order_statusfields, but theAdminPlayerItemresponse model inGET /admin/playersdoes not serialize them. The CRM frontend has nothing to display. This is a ~5-line addition to the response model + query.File Targets
Files the agent should modify:
src/basketball_api/routes/admin.py— add 4 jersey fields toAdminPlayerItemPydantic model and populate them in the queryFiles the agent should NOT touch:
src/basketball_api/models.py— fields already exist on the modelsrc/basketball_api/routes/jersey.py— jersey ordering flowsrc/basketball_api/routes/checkout.py— checkout flowAcceptance Criteria
GET /admin/playersresponse includesjersey_option(string or null)GET /admin/playersresponse includesjersey_size(string or null)GET /admin/playersresponse includesjersey_number(string or null)GET /admin/playersresponse includesjersey_order_status(string: none/pending/paid/shipped)Test Expectations
pytest tests/test_admin_spa.py -vConstraints
Checklist
Related
project-westside-basketballforgejo_admin/westside-landing#183— CRM frontend (depends on this)Scope Review: READY
Review note:
review-675-2026-03-29Ticket is well-scoped, traceable, and executable in a single agent pass (~2 min).
One fix needed before dispatch:
pytest tests/test_admin_spa.py -v(nottests/test_admin.py). test_admin.py covers token generation, not /admin/players.Non-blocking discovered scope:
arch-basketball-api(pre-existing gap, not a blocker).