elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

[Response Ops][Alerting] Fix typing for action `uuid` #195255

Open ymao1 opened 1 month ago

ymao1 commented 1 month ago

With this PR, we added a uuid to the rule action and a migration that sets the uuid for existing rules.

From the PR summary:

Initialy uuid in RuleAction was not optional but as it created tons of changes on types and tests we decided to add it optional. It is still required in RawRuleAction which reflects the action object in Kibana SO.

This leaves the UUID typed as optional in the code when it's not actually optional and it's always set. We should investigate the effort to fix this.

elasticmachine commented 1 month ago

Pinging @elastic/response-ops (Team:ResponseOps)