OSIDB:5038 - Wrap bulk PUT external errors with affect context#1305
OSIDB:5038 - Wrap bulk PUT external errors with affect context#1305svelamak wants to merge 3 commits into
Conversation
|
Warning Review limit reached
More reviews will be available in 34 minutes and 4 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesBulk PUT per-item ValidationError reporting
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@osidb/api_views.py`:
- Around line 1431-1435: In the bulk PUT failure error handling block where
error_detail is assigned, fix the typo in the fallback error key by changing
"non_filed_errors" to "non_field_errors" to match DRF conventions and maintain
consistency with the bulk POST path. This single-character fix (changing "filed"
to "field") ensures error payloads are consistent and client-side error parsing
works correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Enterprise
Run ID: 6dde8e7b-fe57-4d71-8b79-64dc27e47c72
📒 Files selected for processing (3)
docs/CHANGELOG.mdosidb/api_views.pyosidb/tests/endpoints/test_affects.py
Wraps external errors in the bulk affect PUT endpoint with meaningful context.
bulk_putto collect per-item errors when affect failed inapi_views.pyCloses: OSIDB-5038
Summary by CodeRabbit
Bug Fixes
Documentation