{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/6788","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/6788/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/6788/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/6788/events","html_url":"https://github.com/grafana/grafana/issues/6788","id":192944784,"number":6788,"title":"[Bug] Upgrade 3.1.1 -> 4.0.0, template variables used in regexp in InfluxDB raw queries no longer escaped","user":{"login":"jeredfloyd","id":18538696,"avatar_url":"https://avatars.githubusercontent.com/u/18538696?v=3","gravatar_id":"","url":"https://api.github.com/users/jeredfloyd","html_url":"https://github.com/jeredfloyd","followers_url":"https://api.github.com/users/jeredfloyd/followers","following_url":"https://api.github.com/users/jeredfloyd/following{/other_user}","gists_url":"https://api.github.com/users/jeredfloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/jeredfloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeredfloyd/subscriptions","organizations_url":"https://api.github.com/users/jeredfloyd/orgs","repos_url":"https://api.github.com/users/jeredfloyd/repos","events_url":"https://api.github.com/users/jeredfloyd/events{/privacy}","received_events_url":"https://api.github.com/users/jeredfloyd/received_events","type":"User","site_admin":false},"labels":[{"id":120793823,"url":"https://api.github.com/repos/grafana/grafana/labels/state:%20needs%20more%20detail","name":"state: needs more detail","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-01T19:51:33Z","updated_at":"2016-12-02T20:24:06Z","closed_at":"2016-12-02T19:55:03Z","body":"- What Grafana version are you using?\r\n\r\n4.0.0\r\n\r\n**- What datasource are you using?**\r\n\r\nInfluxDB 1.1\r\n\r\n**- What OS are you running grafana on?**\r\n\r\nDebian 8.6 (jessie)\r\n\r\n**- What did you do?**\r\n\r\nUpgraded from 3.1.1 to 4.0.0 from official repository.\r\n\r\n**- What was the expected result?**\r\n\r\nNo breaking changes.\r\n\r\n**- What happened instead?**\r\n\r\nInfluxDB queries using template variables in regexps where the variable can assume a value containing a \"/\" (or other regexp character) do not have the variables escaped when in \"raw query\" mode.  \"Query builder\" mode behaves as expected.\r\n\r\nEscaping now seems dependent on the state of \"rawQuery\".\r\n\r\nI attempted to find if a particular change was the obvious culprit, but I am not familiar with Go nor the layout of the Grafana project.  I will investigate further as time allows, but am filing this bug report in case it immediately rings any bells with others."},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/264553667","html_url":"https://github.com/grafana/grafana/issues/6788#issuecomment-264553667","issue_url":"https://api.github.com/repos/grafana/grafana/issues/6788","id":264553667,"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},"created_at":"2016-12-02T20:24:06Z","updated_at":"2016-12-02T20:24:06Z","body":"yea, your right looks incorrect The intent is to only do regex escaping for variables with multi select, or with all value "}}
{"actor":{"display_login":"torkelo"}}