{"action":"closed","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/772","labels_url":"https://api.github.com/repos/grafana/grafana/issues/772/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/772/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/772/events","html_url":"https://github.com/grafana/grafana/issues/772","id":42176650,"number":772,"title":"Initialize and sync variable state to/from url","user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grafana/grafana/labels/templating","name":"templating","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/grafana/grafana/milestones/6","html_url":"https://github.com/grafana/grafana/milestones/2.0","labels_url":"https://api.github.com/repos/grafana/grafana/milestones/6/labels","id":873896,"number":6,"title":"2.0","description":"Main focus:\r\n* Improve usability & ease of use (especially for new users)\r\n* Improve getting started experience\r\n* Improve docs \r\n","creator":{"login":"torkelo","id":10999,"avatar_url":"https://avatars.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":78,"state":"open","created_at":"2014-11-20T07:45:12Z","updated_at":"2015-03-14T19:32:32Z","due_on":"2015-03-30T22:00:00Z","closed_at":null},"comments":1,"created_at":"2014-09-08T09:01:48Z","updated_at":"2015-03-14T19:32:32Z","closed_at":"2015-03-14T19:32:32Z","body":"This and to some extent the ability to refresh all query based template variables is very tricky. Been trying to get it to work but very hard to make it work in all cases. \r\n\r\nTemplate variables can be set now with var-myvarname=value in url. Breaking change from 1.7 where just the variable name was used. I feel that these needs to prefixed in order not to break dashboards in the future with Grafana url parameters. \r\n\r\nBut this issue will not be solved for 1.8, spent about 1.5 days on this already and it is just too complex to handle right now. The reason it is complex and complicated is the nesting and interdependence on variables, and when how they are initialized and the async nature of values being the result of metric queries. The final solution will have to wait for a future release. "}}