-
Notifications
You must be signed in to change notification settings - Fork 340
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
Adding Origin and Assigned Facility Resource List #2803
Conversation
📝 WalkthroughWalkthroughThe changes enhance the Changes
Suggested Reviewers
Poem
✨ 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 (
|
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.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
care/emr/resources/resource_request/spec.py (1)
Line range hint
134-137
: Fix the inconsistent serialization format, unless that was intentional.I couldn't help but notice that while most of your serializations call
to_json()
, these two seem to have... missed the memo:if obj.created_by: - mapping["created_by"] = UserSpec.serialize(obj.created_by) + mapping["created_by"] = UserSpec.serialize(obj.created_by).to_json() if obj.updated_by: - mapping["updated_by"] = UserSpec.serialize(obj.updated_by) + mapping["updated_by"] = UserSpec.serialize(obj.updated_by).to_json()
🧹 Nitpick comments (1)
care/emr/resources/resource_request/spec.py (1)
89-98
: Add type hints to the method signature, if it's not too much trouble.The serialization logic looks fine, but it would be even better if we could add type hints to make it more maintainable for future developers who might not be as... intuitive as you.
@classmethod - def perform_extra_serialization(cls, mapping, obj): + def perform_extra_serialization(cls, mapping: dict, obj: ResourceRequest) -> None:
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
care/emr/resources/resource_request/spec.py
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Test / Test
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2803 +/- ##
===========================================
- Coverage 56.17% 56.16% -0.01%
===========================================
Files 215 215
Lines 10217 10224 +7
Branches 1030 1031 +1
===========================================
+ Hits 5739 5742 +3
- Misses 4462 4466 +4
Partials 16 16 ☔ View full report in Codecov by Sentry. |
Proposed Changes
Associated Issue
Merge Checklist
/docs
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins
Summary by CodeRabbit