grafana/public/app/features/scenes/variables/variants
Dominik Prokop 1758ddd457
Scenes: Add query variable support (#59553)
* WIP first attempt to query variable

* regex issue repro demo

* Refresh variable on time range change if refresh specified

* Instantiate variable runner when updating query variable options

* Simplify runners getTarget interface

* Fix issue with variable ot being updated correctly after other variable changed

* Add templateSrv.replace compatibility with query variable

* QueryVariable: use datasource variable as source

* use proper format

* Make sure variables set is correctly updated when query variable errors

* Do not destruct scopedVars when using sceneGraph.interpolate in templateSrv

* Add support for Legacy variables (metricFindQuery)

* Review

* Fix lint

* Test: Add unit for datasource by variable

* test: Add unit for datasource as var

* query: delegate interpolation to datasourceSrv

* Cleanup

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2022-12-12 04:01:27 -08:00
..
query Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
ConstantVariable.ts Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
CustomVariable.test.ts Scenes: Add support for Datasource variables (#59147) 2022-11-24 13:53:31 +01:00
CustomVariable.tsx Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
DataSourceVariable.test.ts Scenes: Add support for Datasource variables (#59147) 2022-11-24 13:53:31 +01:00
DataSourceVariable.tsx Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
MultiValueVariable.test.ts Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
MultiValueVariable.ts Variables: Url sync for MultiValueVariable (#59371) 2022-12-01 09:48:26 +01:00
ObjectVariable.test.ts Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
ObjectVariable.ts Scene: ObjectVariable for supporting the built in system variables and object scoped variables (__data for example) (#58291) 2022-11-09 10:27:20 +01:00
TestVariable.tsx Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00