Repository navigation
fix(platform): aggregate usage chart buckets in SQL - #4474
Merged
Merged
Conversation
Contributor
Author
|
ACCEPT — reviewed at head
Local PostgreSQL proof: NOT_RUN (no PostgreSQL binaries available; no installs or processes started). No merge performed. |
This was referenced Oct 7, 2026
Contributor
Author
|
Merge-lane coverage dispositions at
Merge-gate dry run at 07:58:29Z: open, CLEAN, head matches; no required contexts. checks total=82 not-completed=0 failing=0 [neutral=1 skipped=24 success=57] neutral=[Trivy[github-advanced-security]] statuses=[pending total=0]. Every skip is on the by-design allowlist |
yannickmonney
added a commit
that referenced
this pull request
Oct 7, 2026
Cover all ten merges after a89498d through e011cc8: #4464, #4422, #4468, #4470, #4457, #4465, #4472, #4469 and #4474, plus test-only #4473. Apply C3's cumulative upgrade path from v0.5.74 and pin its v0.5.75 notes link to the v0.5.75 tag. Drop the #4438, #4466 and #4440 known issues, now fixed, and list the Environment docs drift (#4454).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A 90-day usage view could return partial totals after hitting the 20,000-row cap on daily ledger rows. Aggregate those rows in SQL by the requested UTC/ISO-week bucket, reporting window and breakdown dimensions before applying the cap. Current and previous windows stay separate even when they share a week or month, and the existing partial flag applies to grouped rows.
Closes #4440.
The Backend integration regression seeds 22,500 daily rows across 90 days and verifies complete, equal daily/weekly/monthly totals, series buckets, prior-window isolation, user/assistant/model breakdowns, filters and tenant isolation. It also checks mixed LLM/voice classification and partial labeling above 20,000 grouped rows. Its fixture is identical at the old and new heads.
Validation:
99d76822e627e87bcc5d8688737d7a429becc0dd. The reader exactly matches main's code. All 234 lanes ran; the regression returned 19,999 requests instead of 22,500 andcapped: truefor all three granularities.39bd715c7542a787bf7d13ff5ffa58f0283baf93. All 1,632 checks passed across 234/234 lanes; all 14 usage regression assertions passed. Daily, weekly and monthly each returned 22,500 requests, 337,500 tokens and 45,000 cost cents withcapped: false.Base:
524e438626f8cf156c9c8b86a5223dc55d5d6b8f. Fixed head:39bd715c7542a787bf7d13ff5ffa58f0283baf93. Source/tree hashes, complete patch, admission readings and verification logs are retained in the TALE-1084 task's delivery artifacts. Independent review remains required; this PR is not merged.