BillTracker/docs
null b3168fca70 fix(qa): retention GC orphaned matched transactions on bill purge (QA-B5-04)
Found probing a copy of the live SimpleFIN DB: 3 transactions were
match_status='matched' with matched_bill_id=NULL. Bills are soft-deleted
(retained for recovery), then the retention GC hard-deletes them past the
30-day window. transactions.matched_bill_id is ON DELETE SET NULL, so the
purge nulled the pointer but left match_status='matched' — a limbo row
excluded from spending/analytics (match_status != 'matched') yet attributed
to no bill, silently dropping that spend.

pruneSoftDeletedFinancialRecords now releases those matches back to
'unmatched' in the same transaction and self-heals pre-existing orphans;
retention behaviour is unchanged. Verified on a live-DB copy (3→0 orphans,
0 transactions lost). Regression: 3 tests in backupAndCleanup.test.js.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 11:04:59 -05:00
..
images docs: update user-guide index with recent features (bank status, notifications, cash flow, batch import, merchant rules) 2026-06-04 03:14:54 -05:00
Authentik-Integration.md push 2026-05-09 13:03:36 -05:00
CSRF-SPA-Setup.md v0.28.0 2026-05-15 22:45:38 -05:00
Engineering_Reference_Manual.md chore(cleanup): remove legacy/public HTML files, retire /legacy route, update docs and About page 2026-06-11 23:50:27 -05:00
Engineering_Reference_promp.md push 2026-05-09 13:03:36 -05:00
QA_PLAN.md fix(qa): retention GC orphaned matched transactions on bill purge (QA-B5-04) 2026-07-03 11:04:59 -05:00
RATE_LIMITING_ENHANCEMENT.md push 2026-05-09 13:03:36 -05:00
ROADMAP_REDESIGN_PLAN.md v0.28.0 2026-05-15 22:45:38 -05:00
ROADMAP_UI_AUDIT.md v0.25.0: roadmap redesign, import CSRF fix, AdminDashboard removed 2026-05-11 21:42:36 -05:00
UI_IMPROVEMENTS.md push 2026-05-09 13:03:36 -05:00
advisory_non_bill_transaction_filters_us_ms_5000.json feat: advisory non-bill transaction filter system (batch 0.33.8.0) 2026-05-29 18:06:12 -05:00
cents-migration-plan.md feat(money): migrate services to cent-exact money.js helpers (batch 0.38.3) 2026-06-10 20:14:13 -05:00
merchant_store_match_us_nems_online_5k_v0_2.json feat(banking): bank transactions page with merchant/store matching, transaction matching refactor, bank sync improvements (batch 0.40.0) 2026-06-14 15:15:31 -05:00
top_200_us_subscriptions.csv chore: bump to v0.34.1.1, Claude.ai catalog seed, subscription fixes 2026-05-30 17:57:34 -05:00
top_200_us_subscriptions_researched_2026-06-06.json feat(subscriptions): simplified SubscriptionsPage, inline actions, improved matching card, Service Catalog route 2026-06-06 22:09:34 -05:00