-
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] DetectionRulesClient
: various refactorings
#184954
[Security Solution] DetectionRulesClient
: various refactorings
#184954
Conversation
/ci |
d9d33a5
to
63ecace
Compare
/ci |
/ci |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
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.
Very nice and straightforward changes @nikitaindik 😉 Let's ship it! 🚢
.../lib/detection_engine/rule_management/logic/detection_rules_client/detection_rules_client.ts
Outdated
Show resolved
Hide resolved
…ule_management/logic/detection_rules_client/detection_rules_client.ts 🤦 Copy-pasted typo fix Co-authored-by: Georgii Gorbachev <banderror@gmail.com>
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.
Detection engine changes LGTM!
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @nikitaindik |
…stic#184954) **Partially addresses: elastic#184364 ## Summary This PR contains various smaller-scale refactorings for the recently added `DetectionsRuleClient`. **Changes**: - Renamed `DetectionRulesClient` containing directory from `rule_management` to `detection_rules_client` - Moved `DetectionRulesClient` methods into the `detection_rules_client/methods` dir - Moved the TS interface of `DetectionRulesClient` into a separate file `detection_rules_client_interface.ts` - Simplified `importRule` method parameters - Added memoization to `getDetectionRulesClient` --------- Co-authored-by: Georgii Gorbachev <banderror@gmail.com>
Partially addresses: #184364
Summary
This PR contains various smaller-scale refactorings for the recently added
DetectionsRuleClient
.Changes:
DetectionRulesClient
containing directory fromrule_management
todetection_rules_client
DetectionRulesClient
methods into thedetection_rules_client/methods
dirDetectionRulesClient
into a separate filedetection_rules_client_interface.ts
importRule
method parametersgetDetectionRulesClient