-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for some minor improvements/bugs #2864
Conversation
📝 WalkthroughWalkthroughThis pull request updates several components. The username filter in the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant VC as ResourceRequestCommentViewSet
participant DB as Database
U->>VC: Request comments
VC->>DB: Query comments filtered by resource request
DB-->>VC: Return matching comments
VC->>VC: Order comments by created_date (desc)
VC-->>U: Return ordered comments
sequenceDiagram
participant C as Client
participant V as ValueSetSpec
C->>V: Submit name for validation
alt Name is empty or whitespace
V-->>C: Raise ValueError ("Name cannot be empty")
else Valid name
V-->>C: Return stripped name
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (4)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2864 +/- ##
===========================================
- Coverage 56.14% 56.14% -0.01%
===========================================
Files 215 215
Lines 10289 10295 +6
Branches 1053 1054 +1
===========================================
+ Hits 5777 5780 +3
- Misses 4496 4499 +3
Partials 16 16 ☔ View full report in Codecov by Sentry. |
@@ -199,10 +200,24 @@ def mine(self, request, *args, **kwargs): | |||
|
|||
|
|||
class OrganizationUserFilter(filters.FilterSet): | |||
username = filters.CharFilter(field_name="user__username", lookup_expr="icontains") | |||
name = filters.CharFilter(method="filter_name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets just use the search filter that DRF provides
Proposed Changes
load_dummy_data
from docs since it's deprecated/app
to${pwd}
, it was giving error when running this script locally@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins
Summary by CodeRabbit