Investigate "Unknown Player" (id 199) — duplicate of Kevin Porja or sibling? #423
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#423
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 2026-04-10 Westside Ops session while querying the
contract_status = 'none'pool.Repo
forgejo_admin/basketball-apiWhat Broke
A player row exists with
name = 'Unknown Player'(id 199), division NULL, no team assigned, contract statusnone. The row shares the SAME parent email and phone as Kevin Porja (id 198):jamma15@gmail.com8013478828Two possibilities:
Repro Steps
SELECT id, name, division, contract_status, parent_id FROM players WHERE name = 'Unknown Player';SELECT p.name, p.created_at FROM players p JOIN parents par ON par.id = p.parent_id WHERE par.email = 'jamma15@gmail.com';Expected Behavior
Either row 199 is deleted (if it's a duplicate) OR its name is updated and the registration is completed (if it's a real sibling). The current state — an unnamed player with no team and no contract — is not a valid production state.
Environment
players(id 199), possiblyparentscontract_status = 'none'poolAcceptance Criteria
SELECT name FROM players WHERE name = 'Unknown Player'returns 0 rows after fixRelated
westside-basketball— project this affects