Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: report combined member limit in group AI spend (#27589) - #27639

#27639
Merged
mtojek merged 1 commit into
release/2.36coder/coder:release/2.36from
backport/27589-to-2.36coder/coder:backport/27589-to-2.36Copy head branch name to clipboard
Jul 29, 2026
Merged

fix: report combined member limit in group AI spend (#27589)#27639
mtojek merged 1 commit into
release/2.36coder/coder:release/2.36from
backport/27589-to-2.36coder/coder:backport/27589-to-2.36Copy head branch name to clipboard

Conversation

@github-actions

Copy link
Copy Markdown

Cherry-pick of #27589

Original PR: #27589 — fix: report combined member limit in group AI spend
Merge commit: 0b40950
Requested by: @ssncferreira

## Problem

The organization groups page showed each group's AI budget as the
group's per-member limit, so the total it displayed was effectively
group members × group budget. That ignores per-user budget overrides
charged to the group, so a group where one member has an override
reported a limit that doesn't match what its members can actually spend.

## Changes

- Add `total_spend_limit_micros` to the organization groups AI spend
payload, the combined budget of the members attributed to the group,
with each member's override replacing their share.
- Return `null` for the total when the group has no budget, since its
members spend without a cap.
- Both the organization groups and single group spend endpoints report
the new field, as they share the same query.
- Use the total as the denominator on the groups page AI budget column.

Depends on #27568

(cherry picked from commit 0b40950)
@github-actions github-actions Bot added the cherry-pick/v2.36 Cherry-pick PR targeting release/2.36 label Jul 29, 2026
@github-actions
github-actions Bot requested review from a team, ibetitsmike and johnstcn as code owners July 29, 2026 08:17
@github-actions
github-actions Bot requested a review from ssncferreira July 29, 2026 08:17
@github-actions

Copy link
Copy Markdown
Author

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@johnstcn
johnstcn requested a review from mtojek July 29, 2026 10:24
@mtojek
mtojek merged commit 4ac4749 into release/2.36 Jul 29, 2026
26 checks passed
@mtojek
mtojek deleted the backport/27589-to-2.36 branch July 29, 2026 10:27
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cherry-pick/v2.36 Cherry-pick PR targeting release/2.36

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.