{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/13192","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/13192/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/13192/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/13192/events","html_url":"https://github.com/grafana/grafana/issues/13192","id":358085936,"node_id":"MDU6SXNzdWUzNTgwODU5MzY=","number":13192,"title":"Opening Prometheus query editor throws console error","user":{"login":"baaym","id":705382,"node_id":"MDQ6VXNlcjcwNTM4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/705382?v=4","gravatar_id":"","url":"https://api.github.com/users/baaym","html_url":"https://github.com/baaym","followers_url":"https://api.github.com/users/baaym/followers","following_url":"https://api.github.com/users/baaym/following{/other_user}","gists_url":"https://api.github.com/users/baaym/gists{/gist_id}","starred_url":"https://api.github.com/users/baaym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baaym/subscriptions","organizations_url":"https://api.github.com/users/baaym/orgs","repos_url":"https://api.github.com/users/baaym/repos","events_url":"https://api.github.com/users/baaym/events{/privacy}","received_events_url":"https://api.github.com/users/baaym/received_events","type":"User","site_admin":false},"labels":[{"id":120793823,"node_id":"MDU6TGFiZWwxMjA3OTM4MjM=","url":"https://api.github.com/repos/grafana/grafana/labels/state:%20needs%20more%20detail","name":"state: needs more detail","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-07T14:18:54Z","updated_at":"2018-09-10T07:40:04Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nWhen I add a new panel based on a Prometheus datasource, the query editor doesn't appear. The console throws the following error in Chrome:\r\n`angular.js:14700 TypeError: Cannot use 'in' operator to search for 'opacity' in undefined\r\n    at new o (index.js:14598)\r\n    at new g (index.js:15538)\r\n    at Object.t.edit (index.js:19037)\r\n    at Object.r [as link] (code_editor.ts:85)\r\n    at angular.js:1385\r\n    at angular.js:10539\r\n    at Ae (angular.js:10545)\r\n    at h (angular.js:9934)\r\n    at a (angular.js:9174)\r\n    at a (angular.js:9177) \"<code-editor content=\"ctrl.target.expr\" datasource=\"ctrl.datasource\" on-change=\"ctrl.refreshMetricData()\" get-completer=\"ctrl.getCompleter()\" data-mode=\"prometheus\" code-editor-focus=\"ctrl.isLastQuery\" class=\" ace_editor ace-tm\">\"`\r\n\r\n## Grafana installation info\r\n- Grafana version 5.2.3 running on Debian\r\n- Browsers tested:\r\n  - Chrome 69.0.3497.81\r\n  - Firefox 62.0\r\n\r\n## Screenshot:\r\n![image](https://user-images.githubusercontent.com/705382/45224099-6cde4500-b2b9-11e8-86e4-782c57399c6a.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/419817877","html_url":"https://github.com/grafana/grafana/issues/13192#issuecomment-419817877","issue_url":"https://api.github.com/repos/grafana/grafana/issues/13192","id":419817877,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTgxNzg3Nw==","user":{"login":"marefr","id":1668778,"node_id":"MDQ6VXNlcjE2Njg3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1668778?v=4","gravatar_id":"","url":"https://api.github.com/users/marefr","html_url":"https://github.com/marefr","followers_url":"https://api.github.com/users/marefr/followers","following_url":"https://api.github.com/users/marefr/following{/other_user}","gists_url":"https://api.github.com/users/marefr/gists{/gist_id}","starred_url":"https://api.github.com/users/marefr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marefr/subscriptions","organizations_url":"https://api.github.com/users/marefr/orgs","repos_url":"https://api.github.com/users/marefr/repos","events_url":"https://api.github.com/users/marefr/events{/privacy}","received_events_url":"https://api.github.com/users/marefr/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T07:40:04Z","updated_at":"2018-09-10T07:40:04Z","author_association":"MEMBER","body":"Unable to reproduce on play.grafana.org (v5.2.3) or locally (v5.3-pre1 7a117a6) using your more detailed steps. \r\n\r\nCould it be due to you have a refresh of each 10 seconds? \r\nDo you use some special character in your datasource name?\r\nMaybe possible for you to include more detailed stack trace when the problem happens?\r\nIf you have chrome dev tools open and do a empty cache and hard reload (see screenshot below) - does that make any difference?\r\n\r\n![image](https://user-images.githubusercontent.com/1668778/45283183-76e08d80-b4dd-11e8-982c-f4472cec20af.png)\r\n"}}
{"actor":{"display_login":"marefr"}}