-
Notifications
You must be signed in to change notification settings - Fork 7
ENG-57596 Add get label application rule api #277
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
============================================
- Coverage 79.93% 76.14% -3.80%
- Complexity 496 543 +47
============================================
Files 55 59 +4
Lines 2432 2712 +280
Branches 108 123 +15
============================================
+ Hits 1944 2065 +121
- Misses 427 573 +146
- Partials 61 74 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
| try { | ||
| RequestContext requestContext = RequestContext.CURRENT.get(); | ||
| LabelApplicationRule labelApplicationRule = | ||
| getAllLabelApplicationRules(requestContext).stream() |
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 don't need to fetch all label application rules in this case. Use getData(...) method in store impl.
...ertrace/label/application/rule/config/service/v1/label_application_rule_config_service.proto
Outdated
Show resolved
Hide resolved
| RequestContext requestContext = RequestContext.CURRENT.get(); | ||
| LabelApplicationRule rule = | ||
| this.labelApplicationRuleStore | ||
| .getData(requestContext, request.getId()) |
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.
This would also need to respect the deleted system IDs (another benefit from sharing the existing RPC)
Description
Please include a summary of the change, motivation and context.
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.