elastic / kibana

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

[ResponseOps][Alerts] Error submiting rule form when using `AddFilterPopover` in actions #192847

Closed adcoelho closed 1 month ago

adcoelho commented 2 months ago

Describe the bug:

When defining actions for a rule, if a filter with AND or OR is created in the AddFilterPopover (inside `If alert matches a query') saving the form throws an error.

Image

Steps to reproduce:

  1. Go to Rules and try creating a new rule of any type
  2. Add an action to the rule
  3. Check the option If alert matches a query
  4. Click the + icon to add a filter
  5. Create a filter in the popover
  6. Click AND or OR
  7. Create another filter
  8. Click Add filter
  9. Try saving the rule
  10. Confirm an error is displayed in a popover## Expected behavior:

No error should be thrown in the scenario described above and the rule should be saved successfully.

Screenshots:

Error with OR

Image

Error with AND

Image

elasticmachine commented 2 months ago

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