{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/167013774","pull_request_review_id":95167948,"id":167013774,"diff_hunk":"@@ -0,0 +1,49 @@\n+/**\n+ * External dependencies\n+ *\n+ * @format\n+ */\n+\n+import React, { Component } from 'react';\n+\n+/**\n+ * Internal dependencies\n+ */\n+import Head from '../components/head';\n+\n+class ServerError extends Component {\n+\trender() {","path":"client/document/500.jsx","position":15,"original_position":15,"commit_id":"4fdaf62bd693cae8c24eae45acf3f53ba7367b87","original_commit_id":"4fdaf62bd693cae8c24eae45acf3f53ba7367b87","user":{"login":"ockham","id":96308,"avatar_url":"https://avatars2.githubusercontent.com/u/96308?v=4","gravatar_id":"","url":"https://api.github.com/users/ockham","html_url":"https://github.com/ockham","followers_url":"https://api.github.com/users/ockham/followers","following_url":"https://api.github.com/users/ockham/following{/other_user}","gists_url":"https://api.github.com/users/ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ockham/subscriptions","organizations_url":"https://api.github.com/users/ockham/orgs","repos_url":"https://api.github.com/users/ockham/repos","events_url":"https://api.github.com/users/ockham/events{/privacy}","received_events_url":"https://api.github.com/users/ockham/received_events","type":"User","site_admin":false},"body":"Stateless functional component please 😁 ","created_at":"2018-02-08T17:43:22Z","updated_at":"2018-02-08T17:43:22Z","html_url":"https://github.com/Automattic/wp-calypso/pull/22255#discussion_r167013774","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/167013774"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/22255#discussion_r167013774"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255","id":168031585,"html_url":"https://github.com/Automattic/wp-calypso/pull/22255","diff_url":"https://github.com/Automattic/wp-calypso/pull/22255.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/22255.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/22255","number":22255,"state":"open","locked":false,"title":"500: drop pug in favor of jsx","user":{"login":"flootr","id":9202899,"avatar_url":"https://avatars0.githubusercontent.com/u/9202899?v=4","gravatar_id":"","url":"https://api.github.com/users/flootr","html_url":"https://github.com/flootr","followers_url":"https://api.github.com/users/flootr/followers","following_url":"https://api.github.com/users/flootr/following{/other_user}","gists_url":"https://api.github.com/users/flootr/gists{/gist_id}","starred_url":"https://api.github.com/users/flootr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flootr/subscriptions","organizations_url":"https://api.github.com/users/flootr/orgs","repos_url":"https://api.github.com/users/flootr/repos","events_url":"https://api.github.com/users/flootr/events{/privacy}","received_events_url":"https://api.github.com/users/flootr/received_events","type":"User","site_admin":false},"body":"Part of _Eliminate Pug_ (#19822). Removes the Pug.js template which is used for the 500 response.\r\n\r\n### Testing\r\n\r\n1. You need to throw an error on the server side e.g. in `/server/render/index.js`:\r\n\r\n```diff\r\ndiff --git a/server/render/index.js b/server/render/index.js\r\nindex 9fcf7059c4..94304a278d 100644\r\n--- a/server/render/index.js\r\n+++ b/server/render/index.js\r\n@@ -159,6 +159,8 @@ export function serverRender( req, res ) {\r\n        context.head = { title, metas, links };\r\n        context.config = config.ssrConfig;\r\n\r\n+       throw new Error( 'gotcha' );\r\n+\r\n        if ( config.isEnabled( 'desktop' ) ) {\r\n                res.render( 'desktop', context );\r\n                return;\r\n```\r\n\r\n2. Go to e.g. https://calypso.localhost:3000 and check the page source (Right-click > \"View page source\")\r\n3. Make sure the output from this branch is not significantly different to the `master` branch.","created_at":"2018-02-08T17:05:07Z","updated_at":"2018-02-08T17:43:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edbd522595ca0ffb055883d7044ea2c107e25a6f","assignee":{"login":"flootr","id":9202899,"avatar_url":"https://avatars0.githubusercontent.com/u/9202899?v=4","gravatar_id":"","url":"https://api.github.com/users/flootr","html_url":"https://github.com/flootr","followers_url":"https://api.github.com/users/flootr/followers","following_url":"https://api.github.com/users/flootr/following{/other_user}","gists_url":"https://api.github.com/users/flootr/gists{/gist_id}","starred_url":"https://api.github.com/users/flootr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flootr/subscriptions","organizations_url":"https://api.github.com/users/flootr/orgs","repos_url":"https://api.github.com/users/flootr/repos","events_url":"https://api.github.com/users/flootr/events{/privacy}","received_events_url":"https://api.github.com/users/flootr/received_events","type":"User","site_admin":false},"assignees":[{"login":"flootr","id":9202899,"avatar_url":"https://avatars0.githubusercontent.com/u/9202899?v=4","gravatar_id":"","url":"https://api.github.com/users/flootr","html_url":"https://github.com/flootr","followers_url":"https://api.github.com/users/flootr/followers","following_url":"https://api.github.com/users/flootr/following{/other_user}","gists_url":"https://api.github.com/users/flootr/gists{/gist_id}","starred_url":"https://api.github.com/users/flootr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flootr/subscriptions","organizations_url":"https://api.github.com/users/flootr/orgs","repos_url":"https://api.github.com/users/flootr/repos","events_url":"https://api.github.com/users/flootr/events{/privacy}","received_events_url":"https://api.github.com/users/flootr/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"ehg","id":215074,"avatar_url":"https://avatars1.githubusercontent.com/u/215074?v=4","gravatar_id":"","url":"https://api.github.com/users/ehg","html_url":"https://github.com/ehg","followers_url":"https://api.github.com/users/ehg/followers","following_url":"https://api.github.com/users/ehg/following{/other_user}","gists_url":"https://api.github.com/users/ehg/gists{/gist_id}","starred_url":"https://api.github.com/users/ehg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehg/subscriptions","organizations_url":"https://api.github.com/users/ehg/orgs","repos_url":"https://api.github.com/users/ehg/repos","events_url":"https://api.github.com/users/ehg/events{/privacy}","received_events_url":"https://api.github.com/users/ehg/received_events","type":"User","site_admin":false},{"login":"samouri","id":4656974,"avatar_url":"https://avatars1.githubusercontent.com/u/4656974?v=4","gravatar_id":"","url":"https://api.github.com/users/samouri","html_url":"https://github.com/samouri","followers_url":"https://api.github.com/users/samouri/followers","following_url":"https://api.github.com/users/samouri/following{/other_user}","gists_url":"https://api.github.com/users/samouri/gists{/gist_id}","starred_url":"https://api.github.com/users/samouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samouri/subscriptions","organizations_url":"https://api.github.com/users/samouri/orgs","repos_url":"https://api.github.com/users/samouri/repos","events_url":"https://api.github.com/users/samouri/events{/privacy}","received_events_url":"https://api.github.com/users/samouri/received_events","type":"User","site_admin":false},{"login":"dmsnell","id":5431237,"avatar_url":"https://avatars3.githubusercontent.com/u/5431237?v=4","gravatar_id":"","url":"https://api.github.com/users/dmsnell","html_url":"https://github.com/dmsnell","followers_url":"https://api.github.com/users/dmsnell/followers","following_url":"https://api.github.com/users/dmsnell/following{/other_user}","gists_url":"https://api.github.com/users/dmsnell/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsnell/subscriptions","organizations_url":"https://api.github.com/users/dmsnell/orgs","repos_url":"https://api.github.com/users/dmsnell/repos","events_url":"https://api.github.com/users/dmsnell/events{/privacy}","received_events_url":"https://api.github.com/users/dmsnell/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/22255/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/4fdaf62bd693cae8c24eae45acf3f53ba7367b87","head":{"label":"Automattic:update/500-template","ref":"update/500-template","sha":"4fdaf62bd693cae8c24eae45acf3f53ba7367b87","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-02-08T09:18:11Z","pushed_at":"2018-02-08T17:42:27Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":76883,"stargazers_count":9702,"watchers_count":9702,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1343,"mirror_url":null,"archived":false,"open_issues_count":1468,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1343,"open_issues":1468,"watchers":9702,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"eca65e262fe3ff0e1c6040bc8cb7b49249644a55","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-02-08T09:18:11Z","pushed_at":"2018-02-08T17:42:27Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":76883,"stargazers_count":9702,"watchers_count":9702,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1343,"mirror_url":null,"archived":false,"open_issues_count":1468,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1343,"open_issues":1468,"watchers":9702,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/22255"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/22255"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/22255/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22255/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/4fdaf62bd693cae8c24eae45acf3f53ba7367b87"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ockham"}}