fix(admin): allow clearing data limit with null - #804
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe admin update logic now distinguishes omitted ChangesAdmin data limit updates
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change distinguishes omitted, zero, and explicit-null data-limit updates so administrators can clear a limit without changing existing behavior; no actionable merge-blocking risk remains. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
data_limitfrom an explicitnullin admin updates.{"data_limit": null}while preserving the existing0behavior.Fixes #802
Type of change
Checklist
Testing
Screenshots
Not applicable.
Notes for reviewers
This uses Pydantic's
model_fields_setto preserve partial-update semantics: omittingdata_limitleaves it unchanged, while explicitly sendingnullclears it. No database migration or API schema change is required, anddata_limit: 0remains supported for backward compatibility.Summary by CodeRabbit
Bug Fixes
Tests