Skip to content

Commit

Permalink
silence resolved alerts (#4293)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town authored Feb 17, 2024
1 parent f0e9262 commit a5e6b60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/server/handlers/cluster/notify_resolved_incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ func NewNotifyResolvedIncidentHandler(
}

func (c *NotifyResolvedIncidentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
project, _ := r.Context().Value(types.ProjectScope).(*models.Project)
cluster, _ := r.Context().Value(types.ClusterScope).(*models.Cluster)

if project.GetFeatureFlag(models.ValidateApplyV2, c.Config().LaunchDarklyClient) {
return
}

request := &types.Incident{}

if ok := c.DecodeAndValidate(w, r, request); !ok {
Expand Down

0 comments on commit a5e6b60

Please sign in to comment.