Files
nuzlocke-tracker/.beans/nuzlocke-tracker-pm9f--genlocke-edge-cases.md
Julian Tabel d39898a7a1 Add run deletion guard to genlocke edge cases bean
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 10:52:21 +01:00

17 lines
792 B
Markdown

---
# nuzlocke-tracker-pm9f
title: Genlocke edge cases
status: draft
type: task
created_at: 2026-02-09T08:48:46Z
updated_at: 2026-02-09T08:48:46Z
parent: nuzlocke-tracker-25mh
---
Collect and evaluate edge cases for genlocke tracking. Review periodically to decide if any need dedicated handling.
## Edge Cases
- [ ] Prevent run deletion if the run is linked to a genlocke leg. The `DELETE /runs/{id}` endpoint should check for a `GenlockeLeg` with matching `run_id` and return 400 if found, telling the user to remove the run from the genlocke first.
- [ ] What happens if a user tries to advance a leg twice? (Currently guarded by "next leg already has a run" check)
- [ ] What if the user edits a completed run back to active after the genlocke has already been marked completed/failed?