-
-
Notifications
You must be signed in to change notification settings - Fork 17
issue: rpc on update, 422 filtering error #546
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
issue: rpc on update, 422 filtering error #546
Conversation
the error appears to be caused by the json filtering logic, it is attempting to utilize the filtering logic when there is an update on a list or json field even if there are no such values to be filtered during an update when attempting to set a new value
📝 WalkthroughWalkthroughAdded a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds regression test coverage for a bug fix that addresses a 422 filtering error when updating list or JSON fields. The error "Invalid array filter key: 0" was occurring because the filtering logic was incorrectly being applied to array values during updates, treating array indices as filter keys.
Key Changes:
- Added a
stringList String[]field to the test schema - Added test coverage for creating records with array field values
- Added test coverage for updating array field values to ensure the bug is fixed
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
the error appears to be caused by the json filtering logic, it is attempting to utilize the filtering logic when there is an update on a list or json field even if there are no such values to be filtered during an update when attempting to set a new value
error response:
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.