[ENG-1021] Restrict delivery and requesr orders with same origin and destination - #3759
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change rejects supply delivery and request orders when their origin and destination resolve to the same facility location. API tests verify the 400 response and validation message for both order types. ChangesSupply location validation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change rejects identical locations during order creation while preserving valid orders without an origin; no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…me-origin-and-destination
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3759 +/- ##
========================================
Coverage 79.74% 79.75%
========================================
Files 482 482
Lines 23297 23301 +4
Branches 2424 2426 +2
========================================
+ Hits 18579 18583 +4
Misses 4115 4115
Partials 603 603 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Proposed Changes
Associated Issue
Merge Checklist
/docs@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins
Summary by CodeRabbit