fix: quota scopes#128
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the device quota and downgrade task to use the FeatureCode and FeatureUsageScope constants instead of hardcoded strings. A critical issue was identified in the downgrade task where using the FeatureCode Enum directly as a key lookup in the limits dictionary will fail, because the dictionary keys are serialized as strings when passed through Celery. It is recommended to use .value to access the underlying string representation of the Enum.
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?