PATCH /api/snowball/order doesn't exclude soft-deleted bills #53
Labels
No Label
architecture
backend
bug
feature
frontend
priority:critical
priority:high
priority:low
priority:medium
priority:nice-to-have
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/BillTracker#53
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Severity: MED 🟡
Affected Files
routes/snowball.js— line 216Problem
The update query in
PATCH /api/snowball/order:No
AND deleted_at IS NULLcondition. Soft-deleted bills can have theirsnowball_ordermutated even though they don't appear in the snowball list. The data drift is invisible but dirty.Impact
snowball_ordervalues that could conflict with active billsFix
Add
AND deleted_at IS NULLto the WHERE clause:Acceptance Criteria