-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add qualifier support to metrics queries #611
Conversation
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #611 +/- ##
============================================
- Coverage 90.21% 88.84% -1.37%
- Complexity 94 109 +15
============================================
Files 114 114
Lines 511 529 +18
Branches 24 30 +6
============================================
+ Hits 461 470 +9
- Misses 26 29 +3
- Partials 24 30 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -106,6 +115,13 @@ class ComponentIntegTestStatus { | |||
] | |||
] | |||
] | |||
if (this.qualifier != null && this.qualifier != "None") { |
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.
Too many of this calls can we replace with:
boolean isNullOrEmpty(String str) { return (str == 'Null' || str == null || str.allWhitespace || str.isEmpty()) } |
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.
We want to check for "None" as that is what is indexed by default for non-qualifiers while indexing data.
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.
Added a private method to incorporate above logic.
Thanks!
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
(cherry picked from commit 822d25f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Add qualifier support to metrics queries
Issues Resolved
Work around solution for opensearch-project/opensearch-build#5386
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.