Add run deletion guard to genlocke edge cases bean
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,6 @@ Collect and evaluate edge cases for genlocke tracking. Review periodically to de
|
||||
|
||||
## Edge Cases
|
||||
|
||||
- [ ] What happens if a genlocke run is manually deleted? (The GenlockeLeg would still reference a non-existent run_id)
|
||||
- [ ] 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?
|
||||
Reference in New Issue
Block a user