{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/6894","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/6894/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/6894/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/6894/events","html_url":"https://github.com/elastic/kibana/pull/6894","id":148081527,"number":6894,"title":"[backport] PR #6865 to 5.0","user":{"login":"elastic-jasper","id":17798231,"avatar_url":"https://avatars.githubusercontent.com/u/17798231?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic-jasper","html_url":"https://github.com/elastic-jasper","followers_url":"https://api.github.com/users/elastic-jasper/followers","following_url":"https://api.github.com/users/elastic-jasper/following{/other_user}","gists_url":"https://api.github.com/users/elastic-jasper/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic-jasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic-jasper/subscriptions","organizations_url":"https://api.github.com/users/elastic-jasper/orgs","repos_url":"https://api.github.com/users/elastic-jasper/repos","events_url":"https://api.github.com/users/elastic-jasper/events{/privacy}","received_events_url":"https://api.github.com/users/elastic-jasper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/backport","name":"backport","color":"ff0000"},{"url":"https://api.github.com/repos/elastic/kibana/labels/has%20conflicts","name":"has conflicts","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"panda01","id":549944,"avatar_url":"https://avatars.githubusercontent.com/u/549944?v=3","gravatar_id":"","url":"https://api.github.com/users/panda01","html_url":"https://github.com/panda01","followers_url":"https://api.github.com/users/panda01/followers","following_url":"https://api.github.com/users/panda01/following{/other_user}","gists_url":"https://api.github.com/users/panda01/gists{/gist_id}","starred_url":"https://api.github.com/users/panda01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panda01/subscriptions","organizations_url":"https://api.github.com/users/panda01/orgs","repos_url":"https://api.github.com/users/panda01/repos","events_url":"https://api.github.com/users/panda01/events{/privacy}","received_events_url":"https://api.github.com/users/panda01/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-13T14:36:57Z","updated_at":"2016-04-13T14:36:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/6894","html_url":"https://github.com/elastic/kibana/pull/6894","diff_url":"https://github.com/elastic/kibana/pull/6894.diff","patch_url":"https://github.com/elastic/kibana/pull/6894.patch"},"body":"Backport PR #6865\n---------\n\n**Commit 1:**\n[internal] Replace var assignments with let in ui tests\n\nThis change was applied to any .js files under __tests__ directories in\nthe ui module.\n\nThis was an automatic replacement from var to let for any variable\ndeclaration that doubles as the initial assignment. Ultimately we want\nmost of these to be converted to const, but this commit is so large that\nit warrants breaking each step of automation up into its own commit.\n\nFor example:\n\nvar foo = 'bar'; becomes let foo = 'var';\n\nThis was accomplished by replacing:\nfind: var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\\s+)=\nreplace: let $1$2=\n\n* Original sha: 863228de379846b54d6a2dbfd56cb90ecaf86bb8\n* Authored by Court Ewing <court@epixa.com> on 2016-04-12T15:30:18Z"}}