Conversation
|
The only thing I could think of to improve the exception handling (and it would apply to the whole block) is to also check the status code, but the message checks are so specific I don't think it would make any difference. The regex for both ES7 and ES8 is great. LGTM. |
Yeah, I thought about adding this, but ultimately felt like it would be changing two things instead of one since the ES7 version did not check status code. Since another dev feels the same, I am going to go ahead and add it. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2483 +/- ##
==========================================
+ Coverage 57.94% 57.96% +0.02%
==========================================
Files 1074 1074
Lines 74714 74715 +1
Branches 2187 2190 +3
==========================================
+ Hits 43290 43307 +17
+ Misses 29381 29359 -22
- Partials 2043 2049 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Overview
What is the objective?
Fix error handling for query complexity limit change in ES8.
What are the changes?
The "payload too large" error handling has been expanded to cover both the ES7 and ES8 responses.
What areas of the application does this impact?
search-app
Required Checklist
Additional Checklist