{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7036","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7036/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7036/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7036/events","html_url":"https://github.com/Automattic/wp-calypso/pull/7036","id":167655250,"number":7036,"title":"JS Errors: Enable rest API for Everyone","user":{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Janitorial","name":"[Type] Janitorial","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false},"assignees":[{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/89","html_url":"https://github.com/Automattic/wp-calypso/milestones/Plans:%20Maintenance","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/89/labels","id":1768456,"number":89,"title":"Plans: Maintenance","description":"","creator":{"login":"fabianapsimoes","id":1248436,"avatar_url":"https://avatars.githubusercontent.com/u/1248436?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianapsimoes","html_url":"https://github.com/fabianapsimoes","followers_url":"https://api.github.com/users/fabianapsimoes/followers","following_url":"https://api.github.com/users/fabianapsimoes/following{/other_user}","gists_url":"https://api.github.com/users/fabianapsimoes/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianapsimoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianapsimoes/subscriptions","organizations_url":"https://api.github.com/users/fabianapsimoes/orgs","repos_url":"https://api.github.com/users/fabianapsimoes/repos","events_url":"https://api.github.com/users/fabianapsimoes/events{/privacy}","received_events_url":"https://api.github.com/users/fabianapsimoes/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":163,"state":"open","created_at":"2016-05-16T10:50:24Z","updated_at":"2016-07-29T22:59:54Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-26T16:42:13Z","updated_at":"2016-08-01T07:33:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7036","html_url":"https://github.com/Automattic/wp-calypso/pull/7036","diff_url":"https://github.com/Automattic/wp-calypso/pull/7036.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7036.patch"},"body":"![](http://gifrific.com/wp-content/uploads/2012/08/Gary-Oldman-Yelling-Everyone-Leon-The-Professional.gif)\r\n\r\nThis enables JS Error logging rest API for every user, so scales it 100x. Currently we have around 1600 errors/24h, so that would mean 160 000/24h\r\nI talked with @bazza and he thinks, we should try it. If I get :+1:, I will deploy it around 6PM GMT, so that we can revert if need be.\r\nRequests are rate-limited per user to 30/hr\r\n\r\n## Testing\r\n\r\n- Build with ENABLE_FEATURES=catch-js-errors make run\r\n- `localStorage.clear()` to de-assign yourself from the logging group\r\n- Reload\r\n- Go to http://calypso.localhost:3000/plugins . IF you have a Jetpack site, you will get an error there.\r\n- You should see a call going to https://public-api.wordpress.com/rest/v1.1/js-error in inspector\r\n- See that data is passed in request\r\n- If you want to see this data captured, see differential D2353\r\n\r\nCC @rralian @gwwar \r\nTest live: https://calypso.live/?branch=update/error-logging-all"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/236509337","html_url":"https://github.com/Automattic/wp-calypso/pull/7036#issuecomment-236509337","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7036","id":236509337,"user":{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T07:33:56Z","updated_at":"2016-08-01T07:33:56Z","body":"Elastic seasch indexed, I am merging this"}}
{"actor":{"display_login":"artpi"}}