Repository navigation
fix: user scoped feature usage quota - #112
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces scoped quota management by adding support for organization, user, and space scopes when reserving and releasing feature quotas. It updates BaseQuota to normalize, group, and process rules based on these scopes, and extends the console_client to pass scope information to the billing API. Feedback on these changes highlights two key issues: first, a parsing ambiguity in _normalize_rule_item where a tuple of two features can be misparsed as a single feature with a scope; second, a potential N+1 database query issue in get_scope_id when resolving space IDs, which can be optimized by caching the resolved scope IDs.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
What?
Why?
How?
Testing?
Anything Else?