Skip to content

[ResponseOps] Add revision field support to Alerting framework rules #137164

@xcrzx

Description

@xcrzx

Parent ticket: #136213

Summary

Implement a new rule attribute revision of type long:

  • All newly created rules should have revision set to 0
  • On rule save, if rule params have been modified, increase the revision number by 1
  • Revisions should not be modifiable by users, i.e., they are increased automatically and ignored when passed as arguments to functions that mutate rules
  • Rule changes like activation/deactivation should not lead to revision increase
  • Changes to dynamic rule attributes (rule state) like executionStatus, or monitoring should not lead to revision increase. See x-pack/plugins/alerting/server/saved_objects/mappings.ts for more examples.

Migrate all existing rules to the new revision field:

  • For all existing rules, set revision to 0

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions