Skip to content
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

chore: handle case of empty child filter #214

Merged
merged 5 commits into from
Nov 14, 2023

Conversation

saxenakshitiz
Copy link
Contributor

No description provided.

@saxenakshitiz saxenakshitiz requested a review from a team as a code owner November 10, 2023 19:08
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (436adec) 73.17% compared to head (6d2f686) 73.26%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #214      +/-   ##
============================================
+ Coverage     73.17%   73.26%   +0.08%     
- Complexity     1109     1115       +6     
============================================
  Files            96       96              
  Lines          4780     4784       +4     
  Branches        547      547              
============================================
+ Hits           3498     3505       +7     
+ Misses         1055     1054       -1     
+ Partials        227      225       -2     
Flag Coverage Δ
integration 73.26% <100.00%> (+0.08%) ⬆️
unit 69.26% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This comment has been minimized.

This comment has been minimized.

}
}]
}, {
"childFilter": [{}, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validation at the server seems fine, but wouldn't we also see if there is some issue on the client side? How is it forming an empty child filter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was coming from QE tests. There is already an issue filed for them to fix. Still we can gracefully handle empty filter in query service


private static final String QUERY_SERVICE_TEST_REQUESTS_DIR = "test-requests";

protected TQueryServiceRequestType readQueryServiceRequest(String fileName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is Tstands for? What about just having QueryServiceRequestType Is it how it was named in proto?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@saxenakshitiz saxenakshitiz merged commit 8c2c883 into main Nov 14, 2023
8 checks passed
@saxenakshitiz saxenakshitiz deleted the handle_empty_child_filter branch November 14, 2023 12:35
Copy link

Unit Test Results

  40 files  ±0    40 suites  ±0   11s ⏱️ +2s
319 tests +3  319 ✔️ +3  0 💤 ±0  0 ❌ ±0 

Results for commit 8c2c883. ± Comparison against base commit 436adec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants