-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[GRPC] Throw exceptions for currently unsupported request-side fields #20162
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR adds runtime validation guards to reject currently unsupported GRPC request fields by throwing UnsupportedOperationException for type, global_params, aggregations, suggest, and typed_keys fields. It also extends TermsLookup deserialization to include the store field. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
Comment |
3739e53 to
79283f0
Compare
Signed-off-by: Karen X <karenxyr@gmail.com>
79283f0 to
3ee08b3
Compare
|
❌ Gradle check result for 3ee08b3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b485652: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20162 +/- ##
============================================
- Coverage 73.30% 73.23% -0.07%
+ Complexity 71732 71713 -19
============================================
Files 5793 5793
Lines 328056 328088 +32
Branches 47245 47252 +7
============================================
- Hits 240476 240277 -199
- Misses 68264 68541 +277
+ Partials 19316 19270 -46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Request-side fields that exist in the protobufs but are not yet implemented in the server should throw exception instead of silently ignoring the provided field.
Related Issues
=#19526
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.