Commit 059ea9d
committed
fix: set event in foreach AlertDto path so incident resolution check runs
In BaseProvider._enrich(), when iterating over AlertDto objects in a
foreach loop, the event variable was never assigned. This caused
check_incident_resolution() to be silently skipped because the condition
if event and should_check_incidents_resolution evaluates to False.
The enrichment itself succeeds (alerts show as 'resolved' in the UI) but
the incident resolution check never runs, so incidents set to 'resolve on
all_resolved' stay active forever when alerts are resolved via workflow.
Fix: assign event = foreach_context in the AlertDto isinstance branch.
Fixes keephq#61941 parent 7239e31 commit 059ea9d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
0 commit comments