[v9.3.x] Alerting: Fix missing dashboard/panelID links in annotations (#60927)

Alerting: Fix missing dashboard/panelID links in annotations (#60926)

Assign thru ref

(cherry picked from commit b88b8bc291)

Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2023-01-04 10:19:25 +00:00
committed by GitHub
co-authored by Alexander Weaver
parent d80ffe3ef9
commit 8aa9921c9f
@@ -98,9 +98,9 @@ func (h *AnnotationStateHistorian) recordAnnotationsSync(ctx context.Context, pa
return
}
for _, i := range annotations {
i.DashboardId = dashID
i.PanelId = panel.panelID
for i := range annotations {
annotations[i].DashboardId = dashID
annotations[i].PanelId = panel.panelID
}
}