[Security Solution] [PRC Milestone 3] Create rule schema migration method for rule bulk updates #175704
Labels
Feature:Prebuilt Detection Rules
Security Solution Prebuilt Detection Rules
release_note:skip
Skip the PR/issue when compiling release notes
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Prebuilt Rule Customization Epic - Milestone 3: #174168
Main Epic: https://github.com/elastic/security-team/issues/1974 (internal)
Additional Material:
- Milestone 3 - Software Design RFC
- Prebuilt Rules Customization Technical Design
Description:
Create the
migratePrebuiltSchemaOnRuleBulkEdit
method, as described in RFC, that performs rule schema migrations on bulk editing operations of rules.Note that this logic needs to be created and added on the Alerting Framework side.
Changes should be backward compatible and should be able to be merged to main or a feature branch.
As described in the RFC, this method includes the calculation of the
prebuilt.isCustomized
field by leveraging theRuleClient
's logic that calculates whether the update of a rule wasskipped
in none of the operations produce an actual change in the rule fields. However, this logic conisders updates to a ruleactions
as a valid change, which shouldn't be taken into account when calculatingprebuilt.isCustomized
. Add the logic to be able to differentiate this type of update.The text was updated successfully, but these errors were encountered: