mirror of https://github.com/grafana/grafana
Transformations: Preserve base threshold when using Config from query results (#96781)
* Merge in default threshold base if exists
* Fix tests to not expect default threshold
* Add config from query example to gdev
* Add a test around the merging of thresholds
* Revert "Add config from query example to gdev"
This reverts commit a239224ebb
.
* update gdev
* Add note about keeping the base threshold
* Update public/app/features/transformers/docs/content.ts
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
* Merge in generated code
---------
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
pull/96880/head
parent
e9fae5bd7f
commit
f9eb013334
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`setFieldConfigDefaults applies the base threshold when one does not exist in the config 1`] = ` |
||||
{ |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "red", |
||||
"value": -Infinity, |
||||
}, |
||||
{ |
||||
"color": "green", |
||||
"value": 50, |
||||
}, |
||||
], |
||||
} |
||||
`; |
Loading…
Reference in new issue