Skip to content

fix(log): mark high totalBalanceChf FinancialDataLog entries of 2026-06-20 as invalid#3946

Merged
TaprootFreak merged 1 commit into
developfrom
fix/invalidate-high-total-balance-logs-20260620
Jun 20, 2026
Merged

fix(log): mark high totalBalanceChf FinancialDataLog entries of 2026-06-20 as invalid#3946
TaprootFreak merged 1 commit into
developfrom
fix/invalidate-high-total-balance-logs-20260620

Conversation

@TaprootFreak

Copy link
Copy Markdown
Collaborator

Recurrence of the daily transient totalBalanceChf spike (see #3884, #3889, #3892, #3903, #3916).

FinancialDataLog entries created on 2026-06-20 carry an implausibly high totalBalanceChf (> 60 000 CHF) but were stamped valid=true, because plusBalanceChf jumped ahead of the corresponding minusBalanceChf booking and the deltas stayed within financeLogTotalBalanceChangeLimit.

  • Threshold: totalBalanceChf > 60 000 (same as 2026-06-18)
  • Scope: entries created on 2026-06-20 (UTC), FinancialDataLog only
  • Env-guarded: COUNT pre-check → no-op where no rows match (staging/dev)
  • down() re-stamps valid=true for the same window/threshold (one-shot fix)

@TaprootFreak TaprootFreak marked this pull request as ready for review June 20, 2026 14:23
@TaprootFreak TaprootFreak merged commit ed90084 into develop Jun 20, 2026
8 checks passed
@TaprootFreak TaprootFreak deleted the fix/invalidate-high-total-balance-logs-20260620 branch June 20, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant