{"action":"created","comment":{"url":"https://api.github.com/repos/doubledutch/trivia/pulls/comments/243543861","pull_request_review_id":187336933,"id":243543861,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzU0Mzg2MQ==","diff_hunk":"@@ -201,6 +221,36 @@ export default class Admin extends PureComponent {\n     )\n   }\n \n+  getAdmins = keys => {\n+    const attendeeClickPromises = keys.map(result =>\n+      client\n+        .getAttendee(result)\n+        .then(attendee => ({ ...attendee }))\n+        .catch(err => result),\n+    )\n+    Promise.all(attendeeClickPromises).then(newResults => {\n+      this.setState({ admins: newResults })\n+    })\n+  }\n+\n+  onAdminSelected = attendee => {\n+    const tokenRef = this.props.fbc.database.private\n+      .adminableUsersRef(attendee.id)\n+      .child('adminToken')\n+    this.setState()\n+    this.props.fbc.getLongLivedAdminToken().then(token => tokenRef.set(token))\n+    this.props.fbc.database.private\n+      .adminRef('adminUrl')\n+      .set(window.location.href + this.adminScreenUrlSave())","path":"web/admin/src/Admin.js","position":100,"original_position":100,"commit_id":"e5501dcba38e57e57d76a47ee02bd1c8796fc1ff","original_commit_id":"e5501dcba38e57e57d76a47ee02bd1c8796fc1ff","user":{"login":"AdamLiechty","id":3197219,"node_id":"MDQ6VXNlcjMxOTcyMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3197219?v=4","gravatar_id":"","url":"https://api.github.com/users/AdamLiechty","html_url":"https://github.com/AdamLiechty","followers_url":"https://api.github.com/users/AdamLiechty/followers","following_url":"https://api.github.com/users/AdamLiechty/following{/other_user}","gists_url":"https://api.github.com/users/AdamLiechty/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamLiechty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamLiechty/subscriptions","organizations_url":"https://api.github.com/users/AdamLiechty/orgs","repos_url":"https://api.github.com/users/AdamLiechty/repos","events_url":"https://api.github.com/users/AdamLiechty/events{/privacy}","received_events_url":"https://api.github.com/users/AdamLiechty/received_events","type":"User","site_admin":false},"body":"What happens if an admin URL is saved, then the extension is updated to a later version?  We would be relying on a URL of a specific past version in that case.","created_at":"2018-12-21T10:27:44Z","updated_at":"2018-12-21T10:31:26Z","html_url":"https://github.com/doubledutch/trivia/pull/10#discussion_r243543861","pull_request_url":"https://api.github.com/repos/doubledutch/trivia/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/comments/243543861"},"html":{"href":"https://github.com/doubledutch/trivia/pull/10#discussion_r243543861"},"pull_request":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/doubledutch/trivia/pulls/10","id":238544495,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NTQ0NDk1","html_url":"https://github.com/doubledutch/trivia/pull/10","diff_url":"https://github.com/doubledutch/trivia/pull/10.diff","patch_url":"https://github.com/doubledutch/trivia/pull/10.patch","issue_url":"https://api.github.com/repos/doubledutch/trivia/issues/10","number":10,"state":"open","locked":false,"title":"Mobile Admin Controls","user":{"login":"edwardstamps","id":10133394,"node_id":"MDQ6VXNlcjEwMTMzMzk0","avatar_url":"https://avatars2.githubusercontent.com/u/10133394?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardstamps","html_url":"https://github.com/edwardstamps","followers_url":"https://api.github.com/users/edwardstamps/followers","following_url":"https://api.github.com/users/edwardstamps/following{/other_user}","gists_url":"https://api.github.com/users/edwardstamps/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardstamps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardstamps/subscriptions","organizations_url":"https://api.github.com/users/edwardstamps/orgs","repos_url":"https://api.github.com/users/edwardstamps/repos","events_url":"https://api.github.com/users/edwardstamps/events{/privacy}","received_events_url":"https://api.github.com/users/edwardstamps/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-13T21:53:17Z","updated_at":"2018-12-21T10:31:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae019c542e4a367fc8399eaf76817c04942e8ec9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/doubledutch/trivia/pulls/10/commits","review_comments_url":"https://api.github.com/repos/doubledutch/trivia/pulls/10/comments","review_comment_url":"https://api.github.com/repos/doubledutch/trivia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doubledutch/trivia/issues/10/comments","statuses_url":"https://api.github.com/repos/doubledutch/trivia/statuses/e5501dcba38e57e57d76a47ee02bd1c8796fc1ff","head":{"label":"doubledutch:mobileAdmin","ref":"mobileAdmin","sha":"e5501dcba38e57e57d76a47ee02bd1c8796fc1ff","user":{"login":"doubledutch","id":1390024,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTAwMjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1390024?v=4","gravatar_id":"","url":"https://api.github.com/users/doubledutch","html_url":"https://github.com/doubledutch","followers_url":"https://api.github.com/users/doubledutch/followers","following_url":"https://api.github.com/users/doubledutch/following{/other_user}","gists_url":"https://api.github.com/users/doubledutch/gists{/gist_id}","starred_url":"https://api.github.com/users/doubledutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubledutch/subscriptions","organizations_url":"https://api.github.com/users/doubledutch/orgs","repos_url":"https://api.github.com/users/doubledutch/repos","events_url":"https://api.github.com/users/doubledutch/events{/privacy}","received_events_url":"https://api.github.com/users/doubledutch/received_events","type":"Organization","site_admin":false},"repo":{"id":127390915,"node_id":"MDEwOlJlcG9zaXRvcnkxMjczOTA5MTU=","name":"trivia","full_name":"doubledutch/trivia","private":false,"owner":{"login":"doubledutch","id":1390024,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTAwMjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1390024?v=4","gravatar_id":"","url":"https://api.github.com/users/doubledutch","html_url":"https://github.com/doubledutch","followers_url":"https://api.github.com/users/doubledutch/followers","following_url":"https://api.github.com/users/doubledutch/following{/other_user}","gists_url":"https://api.github.com/users/doubledutch/gists{/gist_id}","starred_url":"https://api.github.com/users/doubledutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubledutch/subscriptions","organizations_url":"https://api.github.com/users/doubledutch/orgs","repos_url":"https://api.github.com/users/doubledutch/repos","events_url":"https://api.github.com/users/doubledutch/events{/privacy}","received_events_url":"https://api.github.com/users/doubledutch/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/doubledutch/trivia","description":null,"fork":false,"url":"https://api.github.com/repos/doubledutch/trivia","forks_url":"https://api.github.com/repos/doubledutch/trivia/forks","keys_url":"https://api.github.com/repos/doubledutch/trivia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doubledutch/trivia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doubledutch/trivia/teams","hooks_url":"https://api.github.com/repos/doubledutch/trivia/hooks","issue_events_url":"https://api.github.com/repos/doubledutch/trivia/issues/events{/number}","events_url":"https://api.github.com/repos/doubledutch/trivia/events","assignees_url":"https://api.github.com/repos/doubledutch/trivia/assignees{/user}","branches_url":"https://api.github.com/repos/doubledutch/trivia/branches{/branch}","tags_url":"https://api.github.com/repos/doubledutch/trivia/tags","blobs_url":"https://api.github.com/repos/doubledutch/trivia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doubledutch/trivia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doubledutch/trivia/git/refs{/sha}","trees_url":"https://api.github.com/repos/doubledutch/trivia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doubledutch/trivia/statuses/{sha}","languages_url":"https://api.github.com/repos/doubledutch/trivia/languages","stargazers_url":"https://api.github.com/repos/doubledutch/trivia/stargazers","contributors_url":"https://api.github.com/repos/doubledutch/trivia/contributors","subscribers_url":"https://api.github.com/repos/doubledutch/trivia/subscribers","subscription_url":"https://api.github.com/repos/doubledutch/trivia/subscription","commits_url":"https://api.github.com/repos/doubledutch/trivia/commits{/sha}","git_commits_url":"https://api.github.com/repos/doubledutch/trivia/git/commits{/sha}","comments_url":"https://api.github.com/repos/doubledutch/trivia/comments{/number}","issue_comment_url":"https://api.github.com/repos/doubledutch/trivia/issues/comments{/number}","contents_url":"https://api.github.com/repos/doubledutch/trivia/contents/{+path}","compare_url":"https://api.github.com/repos/doubledutch/trivia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doubledutch/trivia/merges","archive_url":"https://api.github.com/repos/doubledutch/trivia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doubledutch/trivia/downloads","issues_url":"https://api.github.com/repos/doubledutch/trivia/issues{/number}","pulls_url":"https://api.github.com/repos/doubledutch/trivia/pulls{/number}","milestones_url":"https://api.github.com/repos/doubledutch/trivia/milestones{/number}","notifications_url":"https://api.github.com/repos/doubledutch/trivia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doubledutch/trivia/labels{/name}","releases_url":"https://api.github.com/repos/doubledutch/trivia/releases{/id}","deployments_url":"https://api.github.com/repos/doubledutch/trivia/deployments","created_at":"2018-03-30T06:32:27Z","updated_at":"2018-12-06T23:29:24Z","pushed_at":"2018-12-20T17:07:23Z","git_url":"git://github.com/doubledutch/trivia.git","ssh_url":"git@github.com:doubledutch/trivia.git","clone_url":"https://github.com/doubledutch/trivia.git","svn_url":"https://github.com/doubledutch/trivia","homepage":null,"size":993,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"doubledutch:master","ref":"master","sha":"7f74cb4fffcdda3d05db1f4a557b68dbb52d6afa","user":{"login":"doubledutch","id":1390024,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTAwMjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1390024?v=4","gravatar_id":"","url":"https://api.github.com/users/doubledutch","html_url":"https://github.com/doubledutch","followers_url":"https://api.github.com/users/doubledutch/followers","following_url":"https://api.github.com/users/doubledutch/following{/other_user}","gists_url":"https://api.github.com/users/doubledutch/gists{/gist_id}","starred_url":"https://api.github.com/users/doubledutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubledutch/subscriptions","organizations_url":"https://api.github.com/users/doubledutch/orgs","repos_url":"https://api.github.com/users/doubledutch/repos","events_url":"https://api.github.com/users/doubledutch/events{/privacy}","received_events_url":"https://api.github.com/users/doubledutch/received_events","type":"Organization","site_admin":false},"repo":{"id":127390915,"node_id":"MDEwOlJlcG9zaXRvcnkxMjczOTA5MTU=","name":"trivia","full_name":"doubledutch/trivia","private":false,"owner":{"login":"doubledutch","id":1390024,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTAwMjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1390024?v=4","gravatar_id":"","url":"https://api.github.com/users/doubledutch","html_url":"https://github.com/doubledutch","followers_url":"https://api.github.com/users/doubledutch/followers","following_url":"https://api.github.com/users/doubledutch/following{/other_user}","gists_url":"https://api.github.com/users/doubledutch/gists{/gist_id}","starred_url":"https://api.github.com/users/doubledutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubledutch/subscriptions","organizations_url":"https://api.github.com/users/doubledutch/orgs","repos_url":"https://api.github.com/users/doubledutch/repos","events_url":"https://api.github.com/users/doubledutch/events{/privacy}","received_events_url":"https://api.github.com/users/doubledutch/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/doubledutch/trivia","description":null,"fork":false,"url":"https://api.github.com/repos/doubledutch/trivia","forks_url":"https://api.github.com/repos/doubledutch/trivia/forks","keys_url":"https://api.github.com/repos/doubledutch/trivia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doubledutch/trivia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doubledutch/trivia/teams","hooks_url":"https://api.github.com/repos/doubledutch/trivia/hooks","issue_events_url":"https://api.github.com/repos/doubledutch/trivia/issues/events{/number}","events_url":"https://api.github.com/repos/doubledutch/trivia/events","assignees_url":"https://api.github.com/repos/doubledutch/trivia/assignees{/user}","branches_url":"https://api.github.com/repos/doubledutch/trivia/branches{/branch}","tags_url":"https://api.github.com/repos/doubledutch/trivia/tags","blobs_url":"https://api.github.com/repos/doubledutch/trivia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doubledutch/trivia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doubledutch/trivia/git/refs{/sha}","trees_url":"https://api.github.com/repos/doubledutch/trivia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doubledutch/trivia/statuses/{sha}","languages_url":"https://api.github.com/repos/doubledutch/trivia/languages","stargazers_url":"https://api.github.com/repos/doubledutch/trivia/stargazers","contributors_url":"https://api.github.com/repos/doubledutch/trivia/contributors","subscribers_url":"https://api.github.com/repos/doubledutch/trivia/subscribers","subscription_url":"https://api.github.com/repos/doubledutch/trivia/subscription","commits_url":"https://api.github.com/repos/doubledutch/trivia/commits{/sha}","git_commits_url":"https://api.github.com/repos/doubledutch/trivia/git/commits{/sha}","comments_url":"https://api.github.com/repos/doubledutch/trivia/comments{/number}","issue_comment_url":"https://api.github.com/repos/doubledutch/trivia/issues/comments{/number}","contents_url":"https://api.github.com/repos/doubledutch/trivia/contents/{+path}","compare_url":"https://api.github.com/repos/doubledutch/trivia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doubledutch/trivia/merges","archive_url":"https://api.github.com/repos/doubledutch/trivia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doubledutch/trivia/downloads","issues_url":"https://api.github.com/repos/doubledutch/trivia/issues{/number}","pulls_url":"https://api.github.com/repos/doubledutch/trivia/pulls{/number}","milestones_url":"https://api.github.com/repos/doubledutch/trivia/milestones{/number}","notifications_url":"https://api.github.com/repos/doubledutch/trivia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doubledutch/trivia/labels{/name}","releases_url":"https://api.github.com/repos/doubledutch/trivia/releases{/id}","deployments_url":"https://api.github.com/repos/doubledutch/trivia/deployments","created_at":"2018-03-30T06:32:27Z","updated_at":"2018-12-06T23:29:24Z","pushed_at":"2018-12-20T17:07:23Z","git_url":"git://github.com/doubledutch/trivia.git","ssh_url":"git@github.com:doubledutch/trivia.git","clone_url":"https://github.com/doubledutch/trivia.git","svn_url":"https://github.com/doubledutch/trivia","homepage":null,"size":993,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/10"},"html":{"href":"https://github.com/doubledutch/trivia/pull/10"},"issue":{"href":"https://api.github.com/repos/doubledutch/trivia/issues/10"},"comments":{"href":"https://api.github.com/repos/doubledutch/trivia/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doubledutch/trivia/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/doubledutch/trivia/statuses/e5501dcba38e57e57d76a47ee02bd1c8796fc1ff"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"AdamLiechty"}}