{"action":"opened","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/6821","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/6821/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/6821/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/6821/events","html_url":"https://github.com/grafana/grafana/issues/6821","id":193405132,"number":6821,"title":"[Bug] query gets corrupted when changing dashboards?","user":{"login":"messier51a","id":20779219,"avatar_url":"https://avatars.githubusercontent.com/u/20779219?v=3","gravatar_id":"","url":"https://api.github.com/users/messier51a","html_url":"https://github.com/messier51a","followers_url":"https://api.github.com/users/messier51a/followers","following_url":"https://api.github.com/users/messier51a/following{/other_user}","gists_url":"https://api.github.com/users/messier51a/gists{/gist_id}","starred_url":"https://api.github.com/users/messier51a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messier51a/subscriptions","organizations_url":"https://api.github.com/users/messier51a/orgs","repos_url":"https://api.github.com/users/messier51a/repos","events_url":"https://api.github.com/users/messier51a/events{/privacy}","received_events_url":"https://api.github.com/users/messier51a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-05T03:44:00Z","updated_at":"2016-12-05T03:44:00Z","closed_at":null,"body":"I have two dashboards using filter variables.  Dashboard #1 is using \"Query\" and #2 is using \"Ad hoc\".   I launch Grafana and open #1 and everything works well, until I open dashboard #2 and go back to #1. Dashboard #1 stops working right away, there's no data in any of the panels.\r\n\r\nThe query going out to influx looks like this:\r\n\r\nSELECT mean(\"Flow\") FROM \"Burners\" WHERE \"Area\" =~ /^A-1$/ AND \"Line\" =~ /^L-1$/ AND \"Fce\" = 'F-3' AND \"Burner\" = 'B-1' AND time > 1480836360s and time < 1480896783s AND \"Area\" = 'E-2' AND \"Line\" = 'L-2' AND \"Fce\" = 'F-3' GROUP BY time(10m) fill(null)\r\n\r\nNote the last filters after the time:\r\n\r\n\"AND \"Area\" = 'E-2' AND \"Line\" = 'L-2' AND \"Fce\" = 'F-3'\"\r\n\r\nThat shouldn't be there, those are the filters I have set in dashboard #2 but somehow they get appended to the query of dashboard #1 when I get back to it.\r\n\r\nI can reproduce this behavior every single time, and there is no way to fix dashboard #1 after if gets into that state, I have to open a new instance of Grafana UI.\r\n\r\nAny ideas?\r\n\r\nThanks!"}}
{"actor":{"display_login":"messier51a"}}