Bladeren bron

fix urls on incidents

Alexander Belanger 3 jaren geleden
bovenliggende
commit
8189ce529d

+ 4 - 2
api/server/handlers/cluster/notify_new_incident.go

@@ -96,10 +96,12 @@ func (c *NotifyNewIncidentHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ
 	if !cluster.NotificationsDisabled {
 		err := multi.NotifyNew(
 			request, fmt.Sprintf(
-				"%s/cluster-dashboard/incidents/%s?namespace=%s",
+				"%s/applications/%s/%s/%s?project_id=%d",
 				c.Config().ServerConf.ServerURL,
-				request.ID,
+				cluster.Name,
 				request.ReleaseNamespace,
+				request.ReleaseName,
+				cluster.ProjectID,
 			),
 		)
 

+ 4 - 2
api/server/handlers/cluster/notify_resolved_incident.go

@@ -95,10 +95,12 @@ func (c *NotifyResolvedIncidentHandler) ServeHTTP(w http.ResponseWriter, r *http
 	if !cluster.NotificationsDisabled {
 		err := multi.NotifyResolved(
 			request, fmt.Sprintf(
-				"%s/cluster-dashboard/incidents/%s?namespace=%s",
+				"%s/applications/%s/%s/%s?project_id=%d",
 				c.Config().ServerConf.ServerURL,
-				request.ID,
+				cluster.Name,
 				request.ReleaseNamespace,
+				request.ReleaseName,
+				cluster.ProjectID,
 			),
 		)