Skip to content

Post-Beta maintenance: startup reconciliation, datetime precision, trend bucketing (DEF-017/027/028) - #7

Merged
gin-melodic merged 5 commits into
developfrom
release-beta-060903
Sep 7, 2026
Merged

Post-Beta maintenance: startup reconciliation, datetime precision, trend bucketing (DEF-017/027/028)#7
gin-melodic merged 5 commits into
developfrom
release-beta-060903

Conversation

@gin-melodic

Copy link
Copy Markdown
Owner

Post-Beta maintenance round (release-beta-060903).

  • DEF-017: wire read-only ledger reconciliation into API startup (fail-closed gate, GAAP_STARTUP_RECONCILIATION=block|warn|off).
  • DEF-027: retain full second precision end-to-end (RFC3339 serialization); fix end-date window boundary (endDateFilter).
  • DEF-028: bucket balance trend by server-local calendar day instead of UTC so date edits re-converge.
  • chore: pin dlv@v1.23.1 (dlv 1.27.x requires Go >= 1.25).

Verification: go build/test green; local UAT security-gate 7/7; trend lifecycle converges on first read after each create/edit/delete.

…ndary (DEF-027)

Two related fixes in the transaction query/response path:

1. Responses now serialize dates as RFC3339 strings, so list/create/update carry full
   second precision instead of date-only values that rendered as local 08:00.
2. A plain calendar end date is now an exclusive next-midnight boundary (date < 'YYYY-MM-DD
   00:00:00') via endDateFilter, so rows created on the final day of a filter window are no
   longer dropped; explicit timestamp bounds keep inclusive <= semantics.

Unit tests cover serialization round-trips and both filter forms.
…F-028)

calculateBalanceTrend grouped transaction rows by UTC day while the trend walk
uses server-local (+08) days, so editing a transaction's date never re-converged
the trend. Bucket by the walk's zone and add a regression test emulating a
Postgres-scanned (UTC-location) row.
gtime.NewFromStr parses naive wall-clock strings in time.Local, so the DEF-027
round-trip test depended on the runner timezone (fails in UTC CI). Pin time.Local
to the +08 production zone for the duration of the test.
@gin-melodic
gin-melodic merged commit ebf8fcd into develop Sep 7, 2026
1 check passed
@gin-melodic
gin-melodic deleted the release-beta-060903 branch September 7, 2026 06:20
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