[ResponseOps] muted alert still fires when using notifyWhen: onActionGroupChange #124170
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Alerting/RulesFramework
Issues related to the Alerting Rules Framework
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
We had a user report that an alert that they had muted was still firing it's actions. Note - the rule itself is not muted, just one specific alert instance. Looking at the event log, you can see that actions are being invoked for that alert, despite it be listed in the muted instances of the saved object. The rule is set to notifyWhen: onActionGroupChange. It seems like the easiest way to test this, given it's on an action group change, is to disable the rule, which will set the instances to "recovered", and the re-enable it, so that the next execution will fire all the instances (muted and not) because of the change from recovered -> active.
In the code below, you can see that the "false" path (second half) checks for throttled and muted cases, but the "true" path does not. So basically, throttling and muting are ignored when
notifyWhen
==onActionGroupChange
.kibana/x-pack/plugins/alerting/server/task_runner/task_runner.ts
Lines 461 to 488 in 73db13f
The text was updated successfully, but these errors were encountered: