Enhance UserQuery model with optional ids and is_blocked fields#406
Enhance UserQuery model with optional ids and is_blocked fields#406julietteceb16 wants to merge 1 commit into
Conversation
WalkthroughThis PR extends the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #406 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 1474 1476 +2
=========================================
+ Hits 1474 1476 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Note
Low Risk
Small additive Pydantic query fields and tests in a validations package; no auth or runtime behavior changes beyond new filter parameters.
Overview
Extends
UserQuerywith optionalids(list of user IDs, capped atMAX_PAGE_SIZE/ 100) andis_blockedso list/filter APIs can target multiple users and blocked state. Bumps package version to2.1.35.dev1.Adds tests for acceptance,
model_dump(exclude_none=True)behavior (including emptyidsvs omitted fields), and validation whenidsexceeds the limit.Reviewed by Cursor Bugbot for commit 3eb12ba. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
New Features
Tests