payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/256976440","pull_request_review_id":203925949,"id":256976440,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1Njk3NjQ0MA==","diff_hunk":"@@ -75,13 +98,27 @@ class DiscoveryStreamAdmin extends React.PureComponent {\n   }\n \n   render() {\n+    const {isOptedOut} = this;\n+\n     const {config, lastUpdated, layout} = this.props.state;\n     return (<div>\n-      <div className=\"dsEnabled\"><input type=\"checkbox\" checked={config.enabled} onChange={this.onEnableToggle} /> enabled</div>\n \n+      <div className=\"dsEnabled\"><input type=\"checkbox\" checked={config.enabled} onChange={this.onEnableToggle} /> enabled\n+        {isOptedOut ? (<span className=\"optOutNote\">(Note: User has opted-out. Check this box to reset)</span>) : \"\"}</div>\n+\n+      <h3>Endpoint variant</h3>\n+      <p>You can also change this manually by changing this pref: <code>browser.newtabpage.activity-stream.discoverystream.config</code></p>\n+      <table style={config.enabled ? null : {opacity: 0.5}}><tbody>\n+        {Object.keys(LAYOUT_VARIANTS).map(id => (<Row key={id}>\n+          <td className=\"min\"><input type=\"radio\" value={id} checked={this.isCurrentVariant(id)} onChange={this.changeEndpointVariant} /></td>\n+          <td className=\"min\">{id}</td>\n+          <td>{LAYOUT_VARIANTS[id]}</td>\n+        </Row>))}\n+      </tbody></table>","path":"content-src/components/ASRouterAdmin/ASRouterAdmin.jsx","position":69,"original_position":69,"commit_id":"2fd04b1cfe5cfbcc579bd01b18807038f32cca6c","original_commit_id":"2fd04b1cfe5cfbcc579bd01b18807038f32cca6c","user":{"login":"Mardak","id":438537,"node_id":"MDQ6VXNlcjQzODUzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false},"body":"Might be useful to have a \"full url\" textbox to set just the endpoint directly. Currently if it's none of the explicit `LAYOUT_VARIANTS`, nothing is checked. And if the url doesn't match `layout_variant=`, clicking the radio buttons do nothing, e.g., if it's set to `https://gist.githubusercontent.com/punamdahiya/44f78e2f338cbf95f5c28d31faed4639/raw/1c61974ca8ebd02431512d9425031e3a9c8e04f4/test-message-feed.json`\r\n\r\nHaving the textbox is slightly clearer what's going on with the gist endpoint. But we don't need to spend too much (/ any?) effort here as there's always about:config…","created_at":"2019-02-14T19:23:48Z","updated_at":"2019-02-14T19:26:32Z","html_url":"https://github.com/mozilla/activity-stream/pull/4792#discussion_r256976440","pull_request_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/256976440"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/4792#discussion_r256976440"},"pull_request":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792","id":253186320,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzMTg2MzIw","html_url":"https://github.com/mozilla/activity-stream/pull/4792","diff_url":"https://github.com/mozilla/activity-stream/pull/4792.diff","patch_url":"https://github.com/mozilla/activity-stream/pull/4792.patch","issue_url":"https://api.github.com/repos/mozilla/activity-stream/issues/4792","number":4792,"state":"open","locked":false,"title":"Bug 1527980 - Add devtools for resetting and picking a layout variant","user":{"login":"k88hudson","id":1455535,"node_id":"MDQ6VXNlcjE0NTU1MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1455535?v=4","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"body":"![screen shot 2019-02-14 at 1 46 03 pm](https://user-images.githubusercontent.com/1455535/52810754-4b9c3480-3061-11e9-9777-057cda8228d7.png)\r\n\r\nTesting enabled / opt-out:\r\n1. Turn on new tab devtools: Set `browser.newtabpage.activity-stream.asrouter.devtoolsEnabled` to `true`.\r\n2. Navigate to about:newtab#devtools-ds\r\n3. Make sure the enabled checkbox is checked. Ensure discovery stream is visible on another tab.\r\n4. Go to about:preferences#home and click the \"Turn off discovery stream\" button.\r\n5. On about:newtab#devtools-ds, ensure that the enabled checkbox is now unchecked and you see the message \"(Note: User has opted-out. Check this box to reset)\" next to the checkbox.\r\n6. Check the enabled box. Ensure that discovery stream now shows up again on a new tab page and the opt-out message has disappeared next to the checkbox.\r\n\r\nTesting layout variants.\r\n1. On about:newtab#devtools-ds, ensure discovery stream is enabled.\r\n2. Check the \"basic\" radio box. Ensure you see a 3-card layout on new tab.\r\n3. Check the \"dev-test-all\" radio box. Ensure you see a long layout with many elements.\r\n4. On about:config, try changing the `browser.newtabpage.activity-stream.discoverystream.config` pref to include `layout_variant=basic` in the endpoint.\r\n5. Check that on about:newtab#devtools-ds the basic radio checkbox is now checked.","created_at":"2019-02-14T19:03:42Z","updated_at":"2019-02-14T19:26:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"906cb4018bced519c0ded6cdb39e3ae98ea0ee85","assignee":{"login":"Mardak","id":438537,"node_id":"MDQ6VXNlcjQzODUzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false},"assignees":[{"login":"Mardak","id":438537,"node_id":"MDQ6VXNlcjQzODUzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":334509354,"node_id":"MDU6TGFiZWwzMzQ1MDkzNTQ=","url":"https://api.github.com/repos/mozilla/activity-stream/labels/PR%20/%20Needs%20review","name":"PR / Needs review","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792/commits","review_comments_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792/comments","review_comment_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/issues/4792/comments","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/2fd04b1cfe5cfbcc579bd01b18807038f32cca6c","head":{"label":"k88hudson:bug1527980","ref":"bug1527980","sha":"2fd04b1cfe5cfbcc579bd01b18807038f32cca6c","user":{"login":"k88hudson","id":1455535,"node_id":"MDQ6VXNlcjE0NTU1MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1455535?v=4","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"repo":{"id":52153556,"node_id":"MDEwOlJlcG9zaXRvcnk1MjE1MzU1Ng==","name":"activity-stream","full_name":"k88hudson/activity-stream","private":false,"owner":{"login":"k88hudson","id":1455535,"node_id":"MDQ6VXNlcjE0NTU1MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1455535?v=4","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/k88hudson/activity-stream","description":" MVP prototype add-on for activity streams","fork":true,"url":"https://api.github.com/repos/k88hudson/activity-stream","forks_url":"https://api.github.com/repos/k88hudson/activity-stream/forks","keys_url":"https://api.github.com/repos/k88hudson/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/k88hudson/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/k88hudson/activity-stream/teams","hooks_url":"https://api.github.com/repos/k88hudson/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/k88hudson/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/k88hudson/activity-stream/events","assignees_url":"https://api.github.com/repos/k88hudson/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/k88hudson/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/k88hudson/activity-stream/tags","blobs_url":"https://api.github.com/repos/k88hudson/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/k88hudson/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/k88hudson/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/k88hudson/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/k88hudson/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/k88hudson/activity-stream/languages","stargazers_url":"https://api.github.com/repos/k88hudson/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/k88hudson/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/k88hudson/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/k88hudson/activity-stream/subscription","commits_url":"https://api.github.com/repos/k88hudson/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/k88hudson/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/k88hudson/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/k88hudson/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/k88hudson/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/k88hudson/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/k88hudson/activity-stream/merges","archive_url":"https://api.github.com/repos/k88hudson/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/k88hudson/activity-stream/downloads","issues_url":"https://api.github.com/repos/k88hudson/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/k88hudson/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/k88hudson/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/k88hudson/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/k88hudson/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/k88hudson/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/k88hudson/activity-stream/deployments","created_at":"2016-02-20T13:02:48Z","updated_at":"2019-02-13T17:40:55Z","pushed_at":"2019-02-14T19:20:00Z","git_url":"git://github.com/k88hudson/activity-stream.git","ssh_url":"git@github.com:k88hudson/activity-stream.git","clone_url":"https://github.com/k88hudson/activity-stream.git","svn_url":"https://github.com/k88hudson/activity-stream","homepage":"","size":14578,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"4a7752c013a45720d168b8083b6668df8bc5fd66","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","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":50695589,"node_id":"MDEwOlJlcG9zaXRvcnk1MDY5NTU4OQ==","name":"activity-stream","full_name":"mozilla/activity-stream","private":false,"owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","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},"html_url":"https://github.com/mozilla/activity-stream","description":"A refreshed \"new tab page\" for Firefox","fork":false,"url":"https://api.github.com/repos/mozilla/activity-stream","forks_url":"https://api.github.com/repos/mozilla/activity-stream/forks","keys_url":"https://api.github.com/repos/mozilla/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/activity-stream/teams","hooks_url":"https://api.github.com/repos/mozilla/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/mozilla/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/activity-stream/events","assignees_url":"https://api.github.com/repos/mozilla/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/activity-stream/tags","blobs_url":"https://api.github.com/repos/mozilla/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/activity-stream/languages","stargazers_url":"https://api.github.com/repos/mozilla/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/mozilla/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/mozilla/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/mozilla/activity-stream/subscription","commits_url":"https://api.github.com/repos/mozilla/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/activity-stream/merges","archive_url":"https://api.github.com/repos/mozilla/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/activity-stream/downloads","issues_url":"https://api.github.com/repos/mozilla/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/activity-stream/deployments","created_at":"2016-01-29T22:28:26Z","updated_at":"2019-02-14T17:48:17Z","pushed_at":"2019-02-14T19:19:59Z","git_url":"git://github.com/mozilla/activity-stream.git","ssh_url":"git@github.com:mozilla/activity-stream.git","clone_url":"https://github.com/mozilla/activity-stream.git","svn_url":"https://github.com/mozilla/activity-stream","homepage":"","size":14747,"stargazers_count":168,"watchers_count":168,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":113,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":113,"open_issues":9,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/4792"},"issue":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/4792"},"comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/4792/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/4792/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/activity-stream/statuses/2fd04b1cfe5cfbcc579bd01b18807038f32cca6c"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"Mardak"}}