You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a096397
Browse filesBrowse the repository at this point in the historyBrowse files
improvement(billing): share the rollup read scope and fold
The two bucket readers repeated the entity+period WHERE prefix, the cost
aggregate, and the row-to-map fold with its null-sum guard. The prefix is
the one that mattered: it is the bucket key, so a change to it had to be
made in both places or one reader would silently scope wrong.
Extract those three. The readers stay separate — their narrowing differs
deliberately (the daily read omits billingPeriodEnd to match the ledger's
scope) and folding that into one parameterized reader would bury the
asymmetry reviewers already found easy to miss.
0 commit comments