{"action":"created","issue":{"url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/97","labels_url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/97/comments","events_url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/97/events","html_url":"https://github.com/zendesk/zendesk_apps_support/pull/97","id":121131930,"number":97,"title":"Olaf/es6","user":{"login":"ocke","id":5171412,"avatar_url":"https://avatars.githubusercontent.com/u/5171412?v=3","gravatar_id":"","url":"https://api.github.com/users/ocke","html_url":"https://github.com/ocke","followers_url":"https://api.github.com/users/ocke/followers","following_url":"https://api.github.com/users/ocke/following{/other_user}","gists_url":"https://api.github.com/users/ocke/gists{/gist_id}","starred_url":"https://api.github.com/users/ocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocke/subscriptions","organizations_url":"https://api.github.com/users/ocke/orgs","repos_url":"https://api.github.com/users/ocke/repos","events_url":"https://api.github.com/users/ocke/events{/privacy}","received_events_url":"https://api.github.com/users/ocke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-09T00:20:44Z","updated_at":"2015-12-10T00:45:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zendesk/zendesk_apps_support/pulls/97","html_url":"https://github.com/zendesk/zendesk_apps_support/pull/97","diff_url":"https://github.com/zendesk/zendesk_apps_support/pull/97.diff","patch_url":"https://github.com/zendesk/zendesk_apps_support/pull/97.patch"},"body":":koala:\r\n\r\nto_es6 function for zas.\r\n\r\nI used therubyracer because node was incredible slow!\r\n- a request for plain js: 10-15ms\r\n- a request with using (babel) es6 and node: 700 ms! (man it was so slow, really annoying)\r\n- a request using babel and therubyracer: 20-25ms. (that's more like it!)\r\n\r\nI needed to change app.js to be a module, as babel only support modules, which means the top line becomes: `module.exports = {` instead of `function() { return {`.\r\n\r\nanyway have a play!\r\n\r\n/cc @zendesk/quokka\r\n\r\n### todo:\r\n- backwards compatibility for app.js\r\n\r\n### References\r\n - Jira link: \r\n\r\n### Risks\r\n - None"},"comment":{"url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/comments/163449752","html_url":"https://github.com/zendesk/zendesk_apps_support/pull/97#issuecomment-163449752","issue_url":"https://api.github.com/repos/zendesk/zendesk_apps_support/issues/97","id":163449752,"user":{"login":"svizzari","id":1216974,"avatar_url":"https://avatars.githubusercontent.com/u/1216974?v=3","gravatar_id":"","url":"https://api.github.com/users/svizzari","html_url":"https://github.com/svizzari","followers_url":"https://api.github.com/users/svizzari/followers","following_url":"https://api.github.com/users/svizzari/following{/other_user}","gists_url":"https://api.github.com/users/svizzari/gists{/gist_id}","starred_url":"https://api.github.com/users/svizzari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svizzari/subscriptions","organizations_url":"https://api.github.com/users/svizzari/orgs","repos_url":"https://api.github.com/users/svizzari/repos","events_url":"https://api.github.com/users/svizzari/events{/privacy}","received_events_url":"https://api.github.com/users/svizzari/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T00:45:56Z","updated_at":"2015-12-10T00:45:56Z","body":"@ocke This PR would need to switch out using JSHint for ESLint or similar, if we were going to allow app developers to upload ES6 code, right?  Sure, JSHint has a harmony mode, but ESLint might be more appropriate? "}}