Skip to content
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

[8.14] [SecuritySolution] Migrate bulk enable/diable rules to Alerting methods (#180796) #181312

Merged
merged 1 commit into from Apr 22, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.14:

Questions ?

Please refer to the Backport tool documentation

…ds (elastic#180796)

**Resolves: elastic#171350
**Resolves partially: elastic#177634

## Summary

This PR migrates the `/api/detection_engine/rules/_bulk_action` API
endpoint to use the `rulesClient.bulkEnableRules` and
`rulesClient.bulkDisableRules` methods under the hood. This change helps
mitigate Task Manager flooding when users enable many detection rules at
once. The alerting framework's bulk methods implement task staggering to
ensure that multiple tasks are not scheduled for execution
simultaneously. For more details, refer to [the
ticket](elastic#171350).

(cherry picked from commit 2169c0f)
@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 22, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @xcrzx

@kibanamachine kibanamachine merged commit 03c0405 into elastic:8.14 Apr 22, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants