fr-ser / grafana-sqlite-datasource

Grafana Plugin to enable SQLite as a Datasource
Apache License 2.0
126 stars 17 forks source link

TODO: Implement $__interval_ms as a variable #2

Closed fr-ser closed 3 years ago

fr-ser commented 4 years ago

For whatever reason, this variable does not seem to be filled like others (to, from, dashboard, org). This variable seems to be sent to the backend, however. There it could be replaced manually.

It would be nice to understand why this variable is not automatically replaced, however. And it should be decided if the frontend or the backend is the right place to replace it.

fr-ser commented 3 years ago

Looks like it was a simple as passing the second (barely documented) scopedVars to the applyTemplateVariables method

fr-ser commented 3 years ago

This is fixed in https://github.com/fr-ser/grafana-sqlite-datasource/commit/9265ecf3341ec2e56d7edb87e842c7c9e1b30d04