Roll back multi-file saves on partial failure #14
Reference in New Issue
Block a user
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?
Severity: medium
Category: data-integrity
Location:
app.py:1222-1232,1436-1463,1555-1563,1630-1635,2029-2035Problem
Routes that write two files (debts+bills, funds+weekly) have no rollback; if the second save fails the files are left inconsistent (e.g. BNPL count incremented but bill not marked paid).
Suggested fix
Snapshot pre-mutation state and revert on failure, or consolidate to a single store / SQLite.
Filed by automated code review.