Skip to content

Commit

Permalink
fix: Resolved incidents can't be a target for RuleEngine (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov authored Nov 14, 2024
1 parent 8856e7e commit 5051a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,7 @@ def get_incident_for_grouping_rule(
.where(Incident.tenant_id == tenant_id)
.where(Incident.rule_id == rule.id)
.where(Incident.rule_fingerprint == rule_fingerprint)
.where(Incident.status != IncidentStatus.RESOLVED.value)
.order_by(Incident.creation_time.desc())
).first()

Expand Down

0 comments on commit 5051a0f

Please sign in to comment.