Skip to content

chore: remove the retention start from the AI spend users response - #32687

Merged
ssncferreira merged 1 commit into
ssncf/ai-spend-page-replacefrom
ssncf/ai-spend-remove-retention-start
Nov 24, 2026
Merged

ssncferreira merged 1 commit into
ssncf/ai-spend-page-replacefrom
ssncf/ai-spend-remove-retention-start

Conversation

@ssncferreira

Copy link
Copy Markdown
Collaborator

Description

Only the old spend page read retention_start from the per-user AI spend response, to limit its date picker. That page is gone, and the AI Gateway retention endpoint now serves this purpose, so the field is removed. The server still narrows a default period to the retention and rejects an explicit one that starts before it.

Related to AIGOV-729

Changes

  • Remove RetentionStart from codersdk.OrganizationAISpendReport.
  • Keep the retention start local to aiSpendRetainedPeriod, its only reader.
  • Regenerate the API docs and TypeScript types, and update the tests and mocks.

Depends on #32686.

Note

Generated by Coder Agents on behalf of @ssncferreira.

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

AIGOV-729

@ssncferreira
ssncferreira force-pushed the ssncf/ai-spend-remove-retention-start branch from f56af35 to a16b899 Compare November 24, 2026 17:30
@ssncferreira
ssncferreira marked this pull request as ready for review November 24, 2026 17:31

@mollymaefraser mollymaefraser left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@ssncferreira
ssncferreira merged commit 7c7dd8f into main Nov 24, 2026
41 checks passed
@ssncferreira
ssncferreira deleted the ssncf/ai-spend-remove-retention-start branch November 24, 2026 18:11

This branch had an error being deployed

1 failed deployment
docs-preview — a16b8995 Deployed Nov 24, 2026 by ssncferreira via cleanup #444
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.

2 participants