-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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][Detections] Add bulk rule action for manual rule run (#9653) #186293
[Security Solution][Detections] Add bulk rule action for manual rule run (#9653) #186293
Conversation
/ci |
TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed. https://buildkite.com/elastic/kibana-pull-request/builds/216105
/ci |
/ci |
@elasticmachine merge upstream |
/ci |
@elasticmachine merge upstream |
/ci |
@elasticmachine merge upstream |
/ci |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6356[✅] x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/ess.config.ts: 100/100 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6357[✅] x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/configs/ess.config.ts: 100/100 tests passed. |
x-pack/plugins/security_solution/public/detection_engine/rule_management/api/api.ts
Outdated
Show resolved
Hide resolved
...ecurity_solution/server/lib/detection_engine/rule_management/api/rules/bulk_actions/route.ts
Outdated
Show resolved
Hide resolved
...ion/public/detection_engine/rule_management/api/hooks/use_bulk_schedule_backfill_mutation.ts
Outdated
Show resolved
Hide resolved
...detection_engine/rule_management_ui/components/rules_table/bulk_actions/use_bulk_actions.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
- use "bulk edit action" path for manual rule run action - adjust error handling to new backfill API error format - update messages to use "manual rule run" instead of "schedule backfile"
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6412[✅] x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/ess.config.ts: 100/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.
LGTM, this is great feature!
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6413[✅] x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_bulk_actions/trial_license_complete_tier/configs/ess.config.ts: 100/100 tests passed. |
x-pack/plugins/security_solution/public/common/lib/apm/user_actions.ts
Outdated
Show resolved
Hide resolved
...cypress/cypress/e2e/detection_response/detection_engine/rule_gaps/bulk_manual_rule_run.cy.ts
Outdated
Show resolved
Hide resolved
scheduleManualRuleRunForSelectedRules(enabledCount, disabledCount); | ||
|
||
cy.contains(TOASTER_BODY, `Successfully scheduled manual rule run for ${enabledCount} rule`); | ||
}); |
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.
Are we missing an assertion here that checks that there's a warning about disabled rules?
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.
It is done within scheduleManualRuleRunForSelectedRules
method. We pass disabledCount
and if it is > 0 thats we show and handle warning modal.
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! 🚀 Thanks for working on this, hugely desired feature.
Thanks as well for implementing our suggestions on reusing performBulkAction
, I think the PR looks much more concise now and there's much less new code.
Left a couple nits and typo warnings, but 👍 💯
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @e40pud |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6410[✅] Security Solution Rule Management - Cypress: 100/100 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#6411[✅] Security Solution Detection Engine - Cypress: 100/100 tests passed. |
Main ticket https://github.com/elastic/security-team/issues/9653
With this changes we introduce a new bulk action which allows to schedule backfill for multiple rules.
NOTES:
manualRuleRunEnabled
firstRECORDING:
Screen.Recording.2024-06-17.at.15.19.11.mov
Checklist
Delete any items that are not applicable to this PR.