Alerting: Wire recording rules feature toggle into limits struct (#87778)

Wire toggle into limits
This commit is contained in:
Alexander Weaver
2024-05-14 07:44:14 -05:00
committed by GitHub
parent fa66816be4
commit e39658097f
5 changed files with 36 additions and 17 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func (srv RulerSrv) ExportFromPayload(c *contextmodel.ReqContext, ruleGroupConfi
return toNamespaceErrorResponse(err)
}
rulesWithOptionals, err := ValidateRuleGroup(&ruleGroupConfig, c.SignedInUser.GetOrgID(), namespace.UID, RuleLimitsFromConfig(srv.cfg))
rulesWithOptionals, err := ValidateRuleGroup(&ruleGroupConfig, c.SignedInUser.GetOrgID(), namespace.UID, RuleLimitsFromConfig(srv.cfg, srv.featureManager))
if err != nil {
return ErrResp(http.StatusBadRequest, err, "")
}