Alerting: Ensure we update State.LastSentAt before persisting (#89427)

This commit is contained in:
Matthew Jacobson
2024-06-25 13:01:26 -04:00
committed by GitHub
parent 0f01db4025
commit 47c9259d75
16 changed files with 237 additions and 75 deletions
+1
View File
@@ -112,6 +112,7 @@ func (srv TestingApiSrv) RouteTestGrafanaRuleConfig(c *contextmodel.ReqContext,
rule,
results,
state.GetRuleExtraLabels(log.New("testing"), rule, folder.Fullpath, includeFolder),
nil,
)
alerts := make([]*amv2.PostableAlert, 0, len(transitions))