feat(py): M5.4 fix #2 — add vs and sync_id to payments tx projection #23
Reference in New Issue
Block a user
Delete Branch "fix/py-payments-add-vs-syncid"
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?
Summary
fetch_sheet_datainscripts/match_payments.pywas reading 9 sheet columns but skippingVSandSync ID, causingmake parityto report extra fields on every raw payment row compared to Go's/api/*responses.idx_vs/idx_sync_idcolumn lookups andvs/sync_idkeys to the tx dict; the values flow throughgroup_payments_by_person→_unwrap_view_model_for_api→ JSON response automatically./api/*test fixtures to includevs/sync_idkeys for realism (tests were already passing without them since they don't assert key absence).RawTransaction.VS/SyncIDremain on the wire contract as the user prefers.Cache note
After this lands and
make web(Python) is restarted, hitPOST /flush-cacheonce (or deletetmp/payments_transactions_*.json) so the in-process cache is cleared and the next request picks up the new column lookups.Test plan
make test— 31 tests, all greenPOST /flush-cacheafter deploy, thenmake parity—vs/sync_iddiff lines gone; remaining diffs are fix #3 territory (message/amounttype drift)🤖 Generated with Claude Code