feat: downgrade subscription when its expired#125
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces device deactivation logic for downgraded organizations and integrates quota enforcement for bulk device creation. Feedback highlights a critical Django runtime error in the deactivation logic where .update() is called on a sliced queryset, along with a performance issue from using len() instead of .count(). Additionally, a potential quota leak was identified in the bulk creation endpoint because quota is reserved before validating the input data, which can result in unreleased quota for failed devices.
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.
15c2ee5 to
02c5f42
Compare
What?
Why?
How?
Testing?
Anything Else?