{"action":"closed","number":1055,"pull_request":{"url":"https://api.github.com/repos/grafana/grafana/pulls/1055","id":24346874,"html_url":"https://github.com/grafana/grafana/pull/1055","diff_url":"https://github.com/grafana/grafana/pull/1055.diff","patch_url":"https://github.com/grafana/grafana/pull/1055.patch","issue_url":"https://api.github.com/repos/grafana/grafana/issues/1055","number":1055,"state":"closed","locked":false,"title":"added datasource as variable type","user":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"body":"With this PR now it is posible use variable to change datasources in query variables and graphs\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5883405/5023638/f1cf7d96-6afc-11e4-8c1c-aa2fcf0015a8.png)\r\n\r\nSolves (https://github.com/grafana/grafana/issues/816)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5883405/5023650/1804f018-6afd-11e4-8d9d-dd02d2f7f9b3.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5883405/5023676/79dc3e04-6afd-11e4-9fd1-0a5997be001e.png)\r\n\r\n\r\n","created_at":"2014-11-13T05:23:43Z","updated_at":"2015-12-16T15:25:44Z","closed_at":"2015-12-16T15:25:44Z","merged_at":null,"merge_commit_sha":"3d32647aee5c34436ff5a275b2005cc411d0d60d","assignee":null,"milestone":{"url":"https://api.github.com/repos/grafana/grafana/milestones/15","html_url":"https://github.com/grafana/grafana/milestones/3.0","labels_url":"https://api.github.com/repos/grafana/grafana/milestones/15/labels","id":1251201,"number":15,"title":"3.0","description":"","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":29,"closed_issues":5,"state":"open","created_at":"2015-08-12T07:29:03Z","updated_at":"2015-12-16T15:25:44Z","due_on":"2016-02-28T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/grafana/grafana/pulls/1055/commits","review_comments_url":"https://api.github.com/repos/grafana/grafana/pulls/1055/comments","review_comment_url":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/1055/comments","statuses_url":"https://api.github.com/repos/grafana/grafana/statuses/3ecfb5f92f6ab32951014a6c15c940bffa0b065e","head":{"label":"toni-moreno:add_datasource_variable","ref":"add_datasource_variable","sha":"3ecfb5f92f6ab32951014a6c15c940bffa0b065e","user":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"repo":{"id":24255624,"name":"grafana","full_name":"toni-moreno/grafana","owner":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toni-moreno/grafana","description":"Grafana - A Graphite & InfluxDB Dashboard and Graph Editor","fork":true,"url":"https://api.github.com/repos/toni-moreno/grafana","forks_url":"https://api.github.com/repos/toni-moreno/grafana/forks","keys_url":"https://api.github.com/repos/toni-moreno/grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toni-moreno/grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toni-moreno/grafana/teams","hooks_url":"https://api.github.com/repos/toni-moreno/grafana/hooks","issue_events_url":"https://api.github.com/repos/toni-moreno/grafana/issues/events{/number}","events_url":"https://api.github.com/repos/toni-moreno/grafana/events","assignees_url":"https://api.github.com/repos/toni-moreno/grafana/assignees{/user}","branches_url":"https://api.github.com/repos/toni-moreno/grafana/branches{/branch}","tags_url":"https://api.github.com/repos/toni-moreno/grafana/tags","blobs_url":"https://api.github.com/repos/toni-moreno/grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toni-moreno/grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toni-moreno/grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/toni-moreno/grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toni-moreno/grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/toni-moreno/grafana/languages","stargazers_url":"https://api.github.com/repos/toni-moreno/grafana/stargazers","contributors_url":"https://api.github.com/repos/toni-moreno/grafana/contributors","subscribers_url":"https://api.github.com/repos/toni-moreno/grafana/subscribers","subscription_url":"https://api.github.com/repos/toni-moreno/grafana/subscription","commits_url":"https://api.github.com/repos/toni-moreno/grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/toni-moreno/grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/toni-moreno/grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/toni-moreno/grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/toni-moreno/grafana/contents/{+path}","compare_url":"https://api.github.com/repos/toni-moreno/grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toni-moreno/grafana/merges","archive_url":"https://api.github.com/repos/toni-moreno/grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toni-moreno/grafana/downloads","issues_url":"https://api.github.com/repos/toni-moreno/grafana/issues{/number}","pulls_url":"https://api.github.com/repos/toni-moreno/grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/toni-moreno/grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/toni-moreno/grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toni-moreno/grafana/labels{/name}","releases_url":"https://api.github.com/repos/toni-moreno/grafana/releases{/id}","created_at":"2014-09-20T06:24:44Z","updated_at":"2014-12-10T05:53:40Z","pushed_at":"2015-12-15T20:56:23Z","git_url":"git://github.com/toni-moreno/grafana.git","ssh_url":"git@github.com:toni-moreno/grafana.git","clone_url":"https://github.com/toni-moreno/grafana.git","svn_url":"https://github.com/toni-moreno/grafana","homepage":"http://grafana.org","size":74737,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"grafana:master","ref":"master","sha":"1591a486cc81d35109ce1c3b38ec0e388f88f930","user":{"login":"grafana","id":7195757,"avatar_url":"https://avatars.githubusercontent.com/u/7195757?v=3","gravatar_id":"","url":"https://api.github.com/users/grafana","html_url":"https://github.com/grafana","followers_url":"https://api.github.com/users/grafana/followers","following_url":"https://api.github.com/users/grafana/following{/other_user}","gists_url":"https://api.github.com/users/grafana/gists{/gist_id}","starred_url":"https://api.github.com/users/grafana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafana/subscriptions","organizations_url":"https://api.github.com/users/grafana/orgs","repos_url":"https://api.github.com/users/grafana/repos","events_url":"https://api.github.com/users/grafana/events{/privacy}","received_events_url":"https://api.github.com/users/grafana/received_events","type":"Organization","site_admin":false},"repo":{"id":15111821,"name":"grafana","full_name":"grafana/grafana","owner":{"login":"grafana","id":7195757,"avatar_url":"https://avatars.githubusercontent.com/u/7195757?v=3","gravatar_id":"","url":"https://api.github.com/users/grafana","html_url":"https://github.com/grafana","followers_url":"https://api.github.com/users/grafana/followers","following_url":"https://api.github.com/users/grafana/following{/other_user}","gists_url":"https://api.github.com/users/grafana/gists{/gist_id}","starred_url":"https://api.github.com/users/grafana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafana/subscriptions","organizations_url":"https://api.github.com/users/grafana/orgs","repos_url":"https://api.github.com/users/grafana/repos","events_url":"https://api.github.com/users/grafana/events{/privacy}","received_events_url":"https://api.github.com/users/grafana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grafana/grafana","description":"Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB","fork":false,"url":"https://api.github.com/repos/grafana/grafana","forks_url":"https://api.github.com/repos/grafana/grafana/forks","keys_url":"https://api.github.com/repos/grafana/grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grafana/grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grafana/grafana/teams","hooks_url":"https://api.github.com/repos/grafana/grafana/hooks","issue_events_url":"https://api.github.com/repos/grafana/grafana/issues/events{/number}","events_url":"https://api.github.com/repos/grafana/grafana/events","assignees_url":"https://api.github.com/repos/grafana/grafana/assignees{/user}","branches_url":"https://api.github.com/repos/grafana/grafana/branches{/branch}","tags_url":"https://api.github.com/repos/grafana/grafana/tags","blobs_url":"https://api.github.com/repos/grafana/grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grafana/grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grafana/grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/grafana/grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grafana/grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/grafana/grafana/languages","stargazers_url":"https://api.github.com/repos/grafana/grafana/stargazers","contributors_url":"https://api.github.com/repos/grafana/grafana/contributors","subscribers_url":"https://api.github.com/repos/grafana/grafana/subscribers","subscription_url":"https://api.github.com/repos/grafana/grafana/subscription","commits_url":"https://api.github.com/repos/grafana/grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/grafana/grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/grafana/grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/grafana/grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/grafana/grafana/contents/{+path}","compare_url":"https://api.github.com/repos/grafana/grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grafana/grafana/merges","archive_url":"https://api.github.com/repos/grafana/grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grafana/grafana/downloads","issues_url":"https://api.github.com/repos/grafana/grafana/issues{/number}","pulls_url":"https://api.github.com/repos/grafana/grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/grafana/grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/grafana/grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grafana/grafana/labels{/name}","releases_url":"https://api.github.com/repos/grafana/grafana/releases{/id}","created_at":"2013-12-11T15:59:56Z","updated_at":"2015-12-16T14:53:50Z","pushed_at":"2015-12-16T15:04:21Z","git_url":"git://github.com/grafana/grafana.git","ssh_url":"git@github.com:grafana/grafana.git","clone_url":"https://github.com/grafana/grafana.git","svn_url":"https://github.com/grafana/grafana","homepage":"http://grafana.org","size":117929,"stargazers_count":7623,"watchers_count":7623,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1125,"mirror_url":null,"open_issues_count":584,"forks":1125,"open_issues":584,"watchers":7623,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grafana/grafana/pulls/1055"},"html":{"href":"https://github.com/grafana/grafana/pull/1055"},"issue":{"href":"https://api.github.com/repos/grafana/grafana/issues/1055"},"comments":{"href":"https://api.github.com/repos/grafana/grafana/issues/1055/comments"},"review_comments":{"href":"https://api.github.com/repos/grafana/grafana/pulls/1055/comments"},"review_comment":{"href":"https://api.github.com/repos/grafana/grafana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grafana/grafana/pulls/1055/commits"},"statuses":{"href":"https://api.github.com/repos/grafana/grafana/statuses/3ecfb5f92f6ab32951014a6c15c940bffa0b065e"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":38,"review_comments":0,"commits":1,"additions":170,"deletions":4,"changed_files":7}}