Fix: Facility PATCH endpoint behaving like PUT#3524
Fix: Facility PATCH endpoint behaving like PUT#3524pratx08 wants to merge 5 commits intoohcnetwork:developfrom
Conversation
📝 WalkthroughWalkthroughThis change implements partial update support for facility resources by refactoring the base mixin to explicitly pass the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
Proposed Changes
care/emr/tests/test_facility_api.pyto ensurePATCH /api/v1/facility/{id}/works with partial payload.Root Cause
Validation
Before Fix

After Fix

Associated Issue
PATCH /api/v1/facility/{id}/with payload{ "name": "..." }returned 400 with missing required fields.Merge Checklist
/docsOnly 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
Release Notes
New Features
Tests