{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/1375","labels_url":"https://api.github.com/repos/grafana/grafana/issues/1375/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/1375/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/1375/events","html_url":"https://github.com/grafana/grafana/issues/1375","id":55118333,"number":1375,"title":"grafana loses quotes when going between its parsed version and the query editor","user":{"login":"marcogallotta","id":192548,"avatar_url":"https://avatars.githubusercontent.com/u/192548?v=3","gravatar_id":"","url":"https://api.github.com/users/marcogallotta","html_url":"https://github.com/marcogallotta","followers_url":"https://api.github.com/users/marcogallotta/followers","following_url":"https://api.github.com/users/marcogallotta/following{/other_user}","gists_url":"https://api.github.com/users/marcogallotta/gists{/gist_id}","starred_url":"https://api.github.com/users/marcogallotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcogallotta/subscriptions","organizations_url":"https://api.github.com/users/marcogallotta/orgs","repos_url":"https://api.github.com/users/marcogallotta/repos","events_url":"https://api.github.com/users/marcogallotta/events{/privacy}","received_events_url":"https://api.github.com/users/marcogallotta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-22T06:16:30Z","updated_at":"2015-01-22T11:21:17Z","closed_at":null,"body":"Eg, start with something like\r\nmovingAverage('1m') in the parsed query.\r\nThis keeps its quotes when you switch to the editor, and then loses them (visually) when you switch back to the parsed query.\r\n\r\nBut then when you actually perform an edit on the parsed version of the query, the input genuinely loses its quotes, which breaks the query.\r\n\r\nThis seems likely to be related to the fact that this field (for movingAverage) can take either strings or numeric data."},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/71006353","html_url":"https://github.com/grafana/grafana/issues/1375#issuecomment-71006353","issue_url":"https://api.github.com/repos/grafana/grafana/issues/1375","id":71006353,"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":"2015-01-22T11:21:17Z","updated_at":"2015-01-22T11:21:17Z","body":"I fail to replicate this, no matter how much I change the movingAverage parameter in the text editor mode or in the query editor mode (trying going back and forth between number and string timespan). \r\n\r\nCould you explain the exact steps and replicate it on http://play.grafana.org/#/dashboard/db/grafana-play-home?panelId=2&fullscreen&edit  ? \r\n\r\nI know you explained the steps, but tried to follow it but could not replicate it "}}