grafana/public/app/features/scenes/variables
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
..
components Scene: Variables interpolation formats and multi value handling (#58591) 2022-11-16 11:36:30 +01:00
interpolation Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
sets Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
variants Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
getVariableDependencies.test.ts Variables: SceneVariable update process (#57784) 2022-11-09 08:02:24 +01:00
getVariableDependencies.ts Variables: SceneVariable update process (#57784) 2022-11-09 08:02:24 +01:00
types.ts Scenes: Add query variable support (#59553) 2022-12-12 04:01:27 -08:00
VariableDependencyConfig.test.ts Scene: Variables and support for declaring variable dependencies and getting notified or re-rendered when they change (#58299) 2022-11-15 12:54:24 +01:00
VariableDependencyConfig.ts Scene: Variables and support for declaring variable dependencies and getting notified or re-rendered when they change (#58299) 2022-11-15 12:54:24 +01:00