fix: alert list links did not work, changed dashboardUri to Url, this is breaking api change in alert api (#10756)

This commit is contained in:
Torkel Ödegaard
2018-02-05 09:42:41 +01:00
committed by GitHub
parent d379aa3815
commit 07fa2f1722
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func transformToDTOs(alerts []*models.Alert, c *middleware.Context) ([]*dtos.Ale
for _, alert := range alertDTOs {
for _, dash := range dashboardsQuery.Result {
if alert.DashboardId == dash.Id {
alert.DashbboardUri = dash.GenerateUrl()
alert.Url = dash.GenerateUrl()
break
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ type AlertRule struct {
EvalDate time.Time `json:"evalDate"`
EvalData *simplejson.Json `json:"evalData"`
ExecutionError string `json:"executionError"`
DashbboardUri string `json:"dashboardUri"`
Url string `json:"url"`
CanEdit bool `json:"canEdit"`
}