mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Remove back end logic for supporting KeepLastState (#34242)
* Removed back end logic for supporting KeepLastState * Map keep_state correctly in migrations
This commit is contained in:
@@ -189,7 +189,7 @@ func transNoData(s string) (string, error) {
|
||||
case "alerting":
|
||||
return "Alerting", nil
|
||||
case "keep_state":
|
||||
return "KeepLastState", nil
|
||||
return "Alerting", nil
|
||||
}
|
||||
return "", fmt.Errorf("unrecognized No Data setting %v", s)
|
||||
}
|
||||
@@ -198,8 +198,8 @@ func transExecErr(s string) (string, error) {
|
||||
switch s {
|
||||
case "", "alerting":
|
||||
return "Alerting", nil
|
||||
case "KeepLastState":
|
||||
return "KeepLastState", nil
|
||||
case "keep_state":
|
||||
return "Alerting", nil
|
||||
}
|
||||
return "", fmt.Errorf("unrecognized Execution Error setting %v", s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user