grafana/public/app/plugins
gotjosh b424e12a5a
Fix: Avoid glob of single-value array variables (#18420)
* Fix: Avoid glob of single-value array variables

Based on our current implementation of templates, when multi-select
variables are part of a dashboard query the default/fallback formatting option is `glob`.

Some data sources do not support glob (e.g. metrics.{a}.* instead of
metrics.a.*) for single variable queries. This behaviour breaks dashboards.

This commit introduces an alternative formatting option where globing is avoided if it's there is only one value as part of the query variable.

This means, queries previously formatted as `query=metrics.{a}.*.*`, are
now formatted as `query=metrics.a.*.*`. However, queries formatted as
`query=metrics.{a,b}.*.*` continue to be as is.
2019-08-07 14:50:06 +01:00
..
app/example-app Build: add @grafana/data package (#17436) 2019-06-18 08:17:27 -07:00
datasource Fix: Avoid glob of single-value array variables (#18420) 2019-08-07 14:50:06 +01:00
panel DataLinks: Enable multiple data links per panel (#18434) 2019-08-07 14:13:19 +02:00
sdk.ts @grafana/runtime: expose config and loadPluginCss (#17655) 2019-06-19 11:31:47 -07:00