Remove "Test Queens Player" duplicate rows from prod #419
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#419
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 Streamlit session while scanning for duplicate player rows. Low priority housekeeping.
Repo
forgejo_admin/basketball-apiWhat Broke
Two player rows exist in prod with
name = 'Test Queens Player'. These are obvious leftover test data — no real player has that name. They inflate every player-count aggregate query by 2, and every "Queens" aggregate by 2. They showed up unnecessarily in today's jerseys query while investigating Marcus's player list.Related:
Test Kings Player(id 188) also exists but is not duplicated — leaving that one alone as it may be a deliberate test fixture used by the frontend for something. The duplicate is the only thing worth cleaning up right now.Repro Steps
SELECT id, name FROM players WHERE name = 'Test Queens Player';Expected Behavior
Zero rows with
name = 'Test Queens Player'. Test data should not live in prod. Any aggregate query counting players or counting Queens should exclude these artifacts.Environment
players, possiblyparents,player_teams,orders,registrationsvia FKSELECT name, COUNT(*) FROM players GROUP BY name HAVING COUNT(*) > 1;returned Alice Uwamahoro (2) and Test Queens Player (2)Acceptance Criteria
SELECT COUNT(*) FROM players WHERE name = 'Test Queens Player'returns 0player_teams,orders,registrationsrows pointing to the deleted players are cleaned up first (no FK violations)Test Kings Player(id 188) is explicitly NOT touchedRelated
westside-basketball— project this affects