Repository navigation
feat: limit the AI spend date pickers to the AI Gateway retention - #32684
Merged
ssncferreira merged 1 commit intoNov 24, 2026
Merged
ssncferreira merged 1 commit into
ssncferreira merged 1 commit into
Conversation
ssncferreira
force-pushed
the
ssncf/ai-spend-retention-date-picker
branch
from
November 24, 2026 17:11
5e913fe to
d00a1f9
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-retention-date-picker
branch
from
November 24, 2026 17:18
d00a1f9 to
409332d
Compare
ssncferreira
marked this pull request as ready for review
November 24, 2026 17:22
mollymaefraser
approved these changes
Nov 24, 2026
mollymaefraser
left a comment
Collaborator
There was a problem hiding this comment.
LGTM 🚀 few comments, up to you if you resolve them now or after
ssncferreira
had a problem deploying
to
docs-preview
November 24, 2026 18:07 — with
GitHub Actions
Failure
This branch had an error being deployed
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.
Description
Some AI spend views read aggregated data, which is never purged, and others read raw AI Gateway data, which is. Both tabs share one date range, so they now accept only days within the AI Gateway data retention. This also stops requests for purged days, which the server rejects with a 400.
Changes
aiGatewayRetentionquery, and wait for it before requesting spend.firstRetainedDay, the first UTC day whose data is fully retained.DatePickerOpenWithRetentionstory.Depends on #32660.
Note
Generated by Coder Agents on behalf of @ssncferreira.