Add missing option "OK" for Error state (#45262)

* Add missing OK option to models
* add ok to legacy legacy UI does not support it but it is possible to do so via provisioning.
* use enums in migration so linter would catch missing cases
This commit is contained in:
Yuriy Tseretyan
2022-03-02 19:07:55 -05:00
committed by GitHub
parent b58f3c8a05
commit 016d9e14ed
5 changed files with 28 additions and 21 deletions
+4 -2
View File
@@ -2627,10 +2627,11 @@
"exec_err_state": {
"type": "string",
"enum": [
"OK",
"Alerting",
"Error"
],
"x-go-enum-desc": "Alerting AlertingErrState\nError ErrorErrState",
"x-go-enum-desc": "OK OkErrState\nAlerting AlertingErrState\nError ErrorErrState",
"x-go-name": "ExecErrState"
},
"id": {
@@ -3590,10 +3591,11 @@
"exec_err_state": {
"type": "string",
"enum": [
"OK",
"Alerting",
"Error"
],
"x-go-enum-desc": "Alerting AlertingErrState\nError ErrorErrState",
"x-go-enum-desc": "OK OkErrState\nAlerting AlertingErrState\nError ErrorErrState",
"x-go-name": "ExecErrState"
},
"no_data_state": {