Query: Add query type to json marshal/unmarshal (#83821)

add query type to json marshal/unmarshal
This commit is contained in:
Will Browne
2024-03-04 16:06:57 +01:00
committed by GitHub
parent 57935250fd
commit c644826f50
2 changed files with 17 additions and 1 deletions

View File

@ -31,7 +31,8 @@ func TestParseQueriesIntoQueryDataRequest(t *testing.T) {
"timeRange": {
"from": "100",
"to": "200"
}
},
"queryType": "foo"
}
],
"from": "1692624667389",
@ -66,6 +67,7 @@ func TestParseQueriesIntoQueryDataRequest(t *testing.T) {
"uid": "old"
},
"maxDataPoints": 10,
"queryType": "foo",
"refId": "Z",
"timeRange": {
"from": "100",