{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/97931100","pull_request_review_id":18556406,"id":97931100,"diff_hunk":"@@ -34,10 +33,12 @@ export class MastHeadBase extends React.Component {\n \n     return (\n       <div className=\"MastHead\">\n-        <div id=\"tabzilla\">\n-          <a href=\"https://www.mozilla.org\">Mozilla</a>\n+        <div className=\"MastHead-top-row\">\n+          <div id=\"tabzilla\">\n+            <a href=\"https://www.mozilla.org\">Mozilla</a>\n+          </div>\n+          <AuthenticateButton className=\"MastHead-auth-button\" size=\"small\" location={location} />","path":"src/amo/components/MastHead.js","position":41,"original_position":41,"commit_id":"656ea62cdd62f3f6f924e8a022a129fd153dfe2c","original_commit_id":"656ea62cdd62f3f6f924e8a022a129fd153dfe2c","user":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"body":"Unfortunately need to pass `location` throughout, I didn't see a way of getting it from react-router. Could update `AuthenticateButton` to just use `window.location.pathname` instead. I'm happy with either.","created_at":"2017-01-26T04:46:26Z","updated_at":"2017-01-26T04:46:26Z","html_url":"https://github.com/mozilla/addons-frontend/pull/1643#discussion_r97931100","pull_request_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643","_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments/97931100"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/1643#discussion_r97931100"},"pull_request":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643","id":102404335,"html_url":"https://github.com/mozilla/addons-frontend/pull/1643","diff_url":"https://github.com/mozilla/addons-frontend/pull/1643.diff","patch_url":"https://github.com/mozilla/addons-frontend/pull/1643.patch","issue_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/1643","number":1643,"state":"open","locked":false,"title":"Make log out work on mobile pages","user":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"body":"Logs you out in the same way as it does on the admin. We have an extra cookie that we'll need to clear on addons-server. I'll submit a follow up patch for that later, tracked in #1557 and an addons-server issue near you.\r\n\r\nThis also clears the JWT from the `api` reducer on log out. That was definitely a bug.\r\n\r\nMaybe we should get rid of the authentication reducer. I filed #1644 for that, I think it was intended to store info about the user but that can go in a \"user\" reducer and shouldn't store the JWT.\r\n\r\nI also renamed `setJWT` to `setJwt` since it was bothering me, in a separate commit.\r\n\r\n[demo gif (7.5MB)](https://cloud.githubusercontent.com/assets/211578/22137092/91609c20-de9e-11e6-915b-d0f78fec2f03.gif)\r\n\r\nFixes #1632.","created_at":"2017-01-20T05:34:35Z","updated_at":"2017-01-26T04:46:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99d1ca01baf568bc0dafca4e56a5ea9e17016dfb","assignee":{"login":"tofumatt","id":90871,"avatar_url":"https://avatars.githubusercontent.com/u/90871?v=3","gravatar_id":"","url":"https://api.github.com/users/tofumatt","html_url":"https://github.com/tofumatt","followers_url":"https://api.github.com/users/tofumatt/followers","following_url":"https://api.github.com/users/tofumatt/following{/other_user}","gists_url":"https://api.github.com/users/tofumatt/gists{/gist_id}","starred_url":"https://api.github.com/users/tofumatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofumatt/subscriptions","organizations_url":"https://api.github.com/users/tofumatt/orgs","repos_url":"https://api.github.com/users/tofumatt/repos","events_url":"https://api.github.com/users/tofumatt/events{/privacy}","received_events_url":"https://api.github.com/users/tofumatt/received_events","type":"User","site_admin":false},"assignees":[{"login":"tofumatt","id":90871,"avatar_url":"https://avatars.githubusercontent.com/u/90871?v=3","gravatar_id":"","url":"https://api.github.com/users/tofumatt","html_url":"https://github.com/tofumatt","followers_url":"https://api.github.com/users/tofumatt/followers","following_url":"https://api.github.com/users/tofumatt/following{/other_user}","gists_url":"https://api.github.com/users/tofumatt/gists{/gist_id}","starred_url":"https://api.github.com/users/tofumatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofumatt/subscriptions","organizations_url":"https://api.github.com/users/tofumatt/orgs","repos_url":"https://api.github.com/users/tofumatt/repos","events_url":"https://api.github.com/users/tofumatt/events{/privacy}","received_events_url":"https://api.github.com/users/tofumatt/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643/commits","review_comments_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643/comments","review_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/1643/comments","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/656ea62cdd62f3f6f924e8a022a129fd153dfe2c","head":{"label":"mstriemer:logout-action-1632","ref":"logout-action-1632","sha":"656ea62cdd62f3f6f924e8a022a129fd153dfe2c","user":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"repo":{"id":52336656,"name":"addons-frontend","full_name":"mstriemer/addons-frontend","owner":{"login":"mstriemer","id":211578,"avatar_url":"https://avatars.githubusercontent.com/u/211578?v=3","gravatar_id":"","url":"https://api.github.com/users/mstriemer","html_url":"https://github.com/mstriemer","followers_url":"https://api.github.com/users/mstriemer/followers","following_url":"https://api.github.com/users/mstriemer/following{/other_user}","gists_url":"https://api.github.com/users/mstriemer/gists{/gist_id}","starred_url":"https://api.github.com/users/mstriemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstriemer/subscriptions","organizations_url":"https://api.github.com/users/mstriemer/orgs","repos_url":"https://api.github.com/users/mstriemer/repos","events_url":"https://api.github.com/users/mstriemer/events{/privacy}","received_events_url":"https://api.github.com/users/mstriemer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mstriemer/addons-frontend","description":"Front-end infrastructure and code to complement mozilla/addons-server","fork":true,"url":"https://api.github.com/repos/mstriemer/addons-frontend","forks_url":"https://api.github.com/repos/mstriemer/addons-frontend/forks","keys_url":"https://api.github.com/repos/mstriemer/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mstriemer/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mstriemer/addons-frontend/teams","hooks_url":"https://api.github.com/repos/mstriemer/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/mstriemer/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/mstriemer/addons-frontend/events","assignees_url":"https://api.github.com/repos/mstriemer/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/mstriemer/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/mstriemer/addons-frontend/tags","blobs_url":"https://api.github.com/repos/mstriemer/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mstriemer/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mstriemer/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/mstriemer/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mstriemer/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/mstriemer/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/mstriemer/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/mstriemer/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/mstriemer/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/mstriemer/addons-frontend/subscription","commits_url":"https://api.github.com/repos/mstriemer/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/mstriemer/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/mstriemer/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/mstriemer/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/mstriemer/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/mstriemer/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mstriemer/addons-frontend/merges","archive_url":"https://api.github.com/repos/mstriemer/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mstriemer/addons-frontend/downloads","issues_url":"https://api.github.com/repos/mstriemer/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/mstriemer/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/mstriemer/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/mstriemer/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mstriemer/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/mstriemer/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/mstriemer/addons-frontend/deployments","created_at":"2016-02-23T06:34:56Z","updated_at":"2016-04-28T21:08:08Z","pushed_at":"2017-01-26T04:42:59Z","git_url":"git://github.com/mstriemer/addons-frontend.git","ssh_url":"git@github.com:mstriemer/addons-frontend.git","clone_url":"https://github.com/mstriemer/addons-frontend.git","svn_url":"https://github.com/mstriemer/addons-frontend","homepage":null,"size":197416,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"01db3af2a8dcae8e82837a5ef8893b8555264988","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":52104368,"name":"addons-frontend","full_name":"mozilla/addons-frontend","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/addons-frontend","description":"Front-end infrastructure and code to complement mozilla/addons-server","fork":false,"url":"https://api.github.com/repos/mozilla/addons-frontend","forks_url":"https://api.github.com/repos/mozilla/addons-frontend/forks","keys_url":"https://api.github.com/repos/mozilla/addons-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/addons-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/addons-frontend/teams","hooks_url":"https://api.github.com/repos/mozilla/addons-frontend/hooks","issue_events_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/addons-frontend/events","assignees_url":"https://api.github.com/repos/mozilla/addons-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/addons-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/addons-frontend/tags","blobs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/addons-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/addons-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/addons-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/addons-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/addons-frontend/languages","stargazers_url":"https://api.github.com/repos/mozilla/addons-frontend/stargazers","contributors_url":"https://api.github.com/repos/mozilla/addons-frontend/contributors","subscribers_url":"https://api.github.com/repos/mozilla/addons-frontend/subscribers","subscription_url":"https://api.github.com/repos/mozilla/addons-frontend/subscription","commits_url":"https://api.github.com/repos/mozilla/addons-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/addons-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/addons-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/addons-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/addons-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/addons-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/addons-frontend/merges","archive_url":"https://api.github.com/repos/mozilla/addons-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/addons-frontend/downloads","issues_url":"https://api.github.com/repos/mozilla/addons-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/addons-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/addons-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/addons-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/addons-frontend/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/addons-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/addons-frontend/deployments","created_at":"2016-02-19T17:25:57Z","updated_at":"2016-12-31T17:41:43Z","pushed_at":"2017-01-26T04:43:01Z","git_url":"git://github.com/mozilla/addons-frontend.git","ssh_url":"git@github.com:mozilla/addons-frontend.git","clone_url":"https://github.com/mozilla/addons-frontend.git","svn_url":"https://github.com/mozilla/addons-frontend","homepage":null,"size":197579,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":186,"forks":25,"open_issues":186,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643"},"html":{"href":"https://github.com/mozilla/addons-frontend/pull/1643"},"issue":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/1643"},"comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/issues/1643/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/addons-frontend/pulls/1643/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/addons-frontend/statuses/656ea62cdd62f3f6f924e8a022a129fd153dfe2c"}}}}
{"actor":{"display_login":"mstriemer"}}