-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Security Solution] Create RulesManagementClient
, initial implementation
#182802
[Security Solution] Create RulesManagementClient
, initial implementation
#182802
Conversation
/ci |
RulesManagamentClient
to refactor utilitiesRulesManagementClient
to refactor utilities
/ci |
4 similar comments
/ci |
/ci |
/ci |
/ci |
@e40pud I addressed the comments and did some refactoring. I ran the flaky test runner on the Exceptions code that I touched, which is what your team owns. Can you please take another look at the PR? Thanks!! |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#6099[❌] Security Solution Rule Management - Cypress: 74/100 tests passed. |
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.
Super nit - gonna be that person that asks about naming 😄 Any thoughts on making it securitySolutionRulesManagementClient
or securityRulesManagementClient
- for new devs and anyone quickly digging through the code it might be confusing to see rulesClient
and rulesManagementClient
.
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.
LGTM! @yctercero has a valid point regarding two clients with similar names. Would be nice to consider how to solve that.
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
History
To update your PR or re-run it, just comment with: cc @jpdjere |
@yctercero @e40pud No worries, as everyone knows, naming is the hardest problem in programming 🙂 We will think about a better name and probably open a separate PR for renaming it. cc @nikitaindik |
I've listed all remaining work in this follow-up ticket: #184364. |
Partially addresses: #180128
Summary
RulesManagementClient
, which centralizes CRUD utilites for rules, atx-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/crud/rules_management_client.ts
SecuritySolution
API requests context.createRules
,deletesRules
,updateRules
andpatchRules
utils and replaces them with new client methods.To-Do:
readRules
method for a new public method within the API (left out of this PR to keep scope and size manageable)Flaky Test Runner
Checklist
Delete any items that are not applicable to this PR.