mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Update alert rule export models to omit default values (#75918)
* do not include rule uid in response if it's empty * make some fields of export models nillable
This commit is contained in:
@@ -592,8 +592,7 @@ func TestProvisioningApi(t *testing.T) {
|
||||
condition = "A"
|
||||
|
||||
data {
|
||||
ref_id = "A"
|
||||
query_type = ""
|
||||
ref_id = "A"
|
||||
|
||||
relative_time_range {
|
||||
from = 0
|
||||
@@ -620,8 +619,7 @@ func TestProvisioningApi(t *testing.T) {
|
||||
condition = "A"
|
||||
|
||||
data {
|
||||
ref_id = "A"
|
||||
query_type = ""
|
||||
ref_id = "A"
|
||||
|
||||
relative_time_range {
|
||||
from = 0
|
||||
@@ -635,8 +633,6 @@ func TestProvisioningApi(t *testing.T) {
|
||||
no_data_state = "OK"
|
||||
exec_err_state = "OK"
|
||||
for = 0
|
||||
annotations = null
|
||||
labels = null
|
||||
is_paused = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user