picks_form swallows every IntegrityError as a duplicate submission #438
Labels
No labels
Kestra
bug
enhancement
someday
subtask
☁️ api
🎛️ infrastructure
🐞 sentry
📆 2025 Season
📝 pages
allpicks
📝 pages
picks
📝 pages
standings
🚀 performance
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
johnsturgeon/tgfp-web#438
Loading…
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?
The comment describes
uq_playergamepick_player_game, but the handler catches every constraint on the table — NOT NULLs anduq_one_lock_per_weekincluded — then renders the success template.That is how the missing
week_idwent unnoticed: every pick failed the NOT NULL check, rolled back as a "race", and the page said it worked.Narrow it to the unique constraint, or at minimum log before swallowing.