{"action":"created","comment":{"url":"https://api.github.com/repos/HackGT/ballot/pulls/comments/172040300","pull_request_review_id":100997512,"id":172040300,"diff_hunk":"@@ -0,0 +1,111 @@\n+import * as React from 'react';\n+import './UserTable.scss';\n+\n+interface UserTableProps {}\n+\n+class UserTable extends React.Component<{}, { userData: Array<React.ReactElement<any>> }> {\n+    constructor(props: any) {\n+        super(props);\n+\n+        this.state = {\n+            userData: [],\n+        };\n+    }\n+\n+    public async componentDidMount(): Promise<void> {\n+        const result = await fetch('/graphql', {","path":"src/client/components/admin/UserTable.tsx","position":16,"original_position":16,"commit_id":"1130c69e3bb57fe175a735fa40119ae7dded399b","original_commit_id":"1130c69e3bb57fe175a735fa40119ae7dded399b","user":{"login":"AJLiu","id":3196570,"avatar_url":"https://avatars3.githubusercontent.com/u/3196570?v=4","gravatar_id":"","url":"https://api.github.com/users/AJLiu","html_url":"https://github.com/AJLiu","followers_url":"https://api.github.com/users/AJLiu/followers","following_url":"https://api.github.com/users/AJLiu/following{/other_user}","gists_url":"https://api.github.com/users/AJLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/AJLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AJLiu/subscriptions","organizations_url":"https://api.github.com/users/AJLiu/orgs","repos_url":"https://api.github.com/users/AJLiu/repos","events_url":"https://api.github.com/users/AJLiu/events{/privacy}","received_events_url":"https://api.github.com/users/AJLiu/received_events","type":"User","site_admin":false},"body":"1. This will never work post-merge because you're not passing credentials\r\n2. I'm in favor of not using redux state for this since this data expires every time you visit this page and it only appears on this page, but you should do more to separate the presentation and logical side of this component. Fetch this data in a container and render it in a presentational SFC.","created_at":"2018-03-04T08:00:17Z","updated_at":"2018-03-04T08:06:43Z","html_url":"https://github.com/HackGT/ballot/pull/39#discussion_r172040300","pull_request_url":"https://api.github.com/repos/HackGT/ballot/pulls/39","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/comments/172040300"},"html":{"href":"https://github.com/HackGT/ballot/pull/39#discussion_r172040300"},"pull_request":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/HackGT/ballot/pulls/39","id":172653295,"html_url":"https://github.com/HackGT/ballot/pull/39","diff_url":"https://github.com/HackGT/ballot/pull/39.diff","patch_url":"https://github.com/HackGT/ballot/pull/39.patch","issue_url":"https://api.github.com/repos/HackGT/ballot/issues/39","number":39,"state":"open","locked":false,"title":"Use Redux-style auth container logic","user":{"login":"SyntaxBlitz","id":1474671,"avatar_url":"https://avatars0.githubusercontent.com/u/1474671?v=4","gravatar_id":"","url":"https://api.github.com/users/SyntaxBlitz","html_url":"https://github.com/SyntaxBlitz","followers_url":"https://api.github.com/users/SyntaxBlitz/followers","following_url":"https://api.github.com/users/SyntaxBlitz/following{/other_user}","gists_url":"https://api.github.com/users/SyntaxBlitz/gists{/gist_id}","starred_url":"https://api.github.com/users/SyntaxBlitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyntaxBlitz/subscriptions","organizations_url":"https://api.github.com/users/SyntaxBlitz/orgs","repos_url":"https://api.github.com/users/SyntaxBlitz/repos","events_url":"https://api.github.com/users/SyntaxBlitz/events{/privacy}","received_events_url":"https://api.github.com/users/SyntaxBlitz/received_events","type":"User","site_admin":false},"body":"This replaces the old Authorization wrapper and makes a new per-component Authorization function that maps reduxstate to a 'should-render' boolean (that should be based on authorization).\r\n\r\nIt also (for some reason) fixes the router problems.","created_at":"2018-03-03T06:24:06Z","updated_at":"2018-03-04T08:06:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc9e0f6189bb964837fa70f1ba071e25ab0835b8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HackGT/ballot/pulls/39/commits","review_comments_url":"https://api.github.com/repos/HackGT/ballot/pulls/39/comments","review_comment_url":"https://api.github.com/repos/HackGT/ballot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackGT/ballot/issues/39/comments","statuses_url":"https://api.github.com/repos/HackGT/ballot/statuses/1130c69e3bb57fe175a735fa40119ae7dded399b","head":{"label":"HackGT:auth-container","ref":"auth-container","sha":"1130c69e3bb57fe175a735fa40119ae7dded399b","user":{"login":"HackGT","id":10822553,"avatar_url":"https://avatars0.githubusercontent.com/u/10822553?v=4","gravatar_id":"","url":"https://api.github.com/users/HackGT","html_url":"https://github.com/HackGT","followers_url":"https://api.github.com/users/HackGT/followers","following_url":"https://api.github.com/users/HackGT/following{/other_user}","gists_url":"https://api.github.com/users/HackGT/gists{/gist_id}","starred_url":"https://api.github.com/users/HackGT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackGT/subscriptions","organizations_url":"https://api.github.com/users/HackGT/orgs","repos_url":"https://api.github.com/users/HackGT/repos","events_url":"https://api.github.com/users/HackGT/events{/privacy}","received_events_url":"https://api.github.com/users/HackGT/received_events","type":"Organization","site_admin":false},"repo":{"id":119292108,"name":"ballot","full_name":"HackGT/ballot","owner":{"login":"HackGT","id":10822553,"avatar_url":"https://avatars0.githubusercontent.com/u/10822553?v=4","gravatar_id":"","url":"https://api.github.com/users/HackGT","html_url":"https://github.com/HackGT","followers_url":"https://api.github.com/users/HackGT/followers","following_url":"https://api.github.com/users/HackGT/following{/other_user}","gists_url":"https://api.github.com/users/HackGT/gists{/gist_id}","starred_url":"https://api.github.com/users/HackGT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackGT/subscriptions","organizations_url":"https://api.github.com/users/HackGT/orgs","repos_url":"https://api.github.com/users/HackGT/repos","events_url":"https://api.github.com/users/HackGT/events{/privacy}","received_events_url":"https://api.github.com/users/HackGT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HackGT/ballot","description":null,"fork":false,"url":"https://api.github.com/repos/HackGT/ballot","forks_url":"https://api.github.com/repos/HackGT/ballot/forks","keys_url":"https://api.github.com/repos/HackGT/ballot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackGT/ballot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackGT/ballot/teams","hooks_url":"https://api.github.com/repos/HackGT/ballot/hooks","issue_events_url":"https://api.github.com/repos/HackGT/ballot/issues/events{/number}","events_url":"https://api.github.com/repos/HackGT/ballot/events","assignees_url":"https://api.github.com/repos/HackGT/ballot/assignees{/user}","branches_url":"https://api.github.com/repos/HackGT/ballot/branches{/branch}","tags_url":"https://api.github.com/repos/HackGT/ballot/tags","blobs_url":"https://api.github.com/repos/HackGT/ballot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackGT/ballot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackGT/ballot/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackGT/ballot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackGT/ballot/statuses/{sha}","languages_url":"https://api.github.com/repos/HackGT/ballot/languages","stargazers_url":"https://api.github.com/repos/HackGT/ballot/stargazers","contributors_url":"https://api.github.com/repos/HackGT/ballot/contributors","subscribers_url":"https://api.github.com/repos/HackGT/ballot/subscribers","subscription_url":"https://api.github.com/repos/HackGT/ballot/subscription","commits_url":"https://api.github.com/repos/HackGT/ballot/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackGT/ballot/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackGT/ballot/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackGT/ballot/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackGT/ballot/contents/{+path}","compare_url":"https://api.github.com/repos/HackGT/ballot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackGT/ballot/merges","archive_url":"https://api.github.com/repos/HackGT/ballot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackGT/ballot/downloads","issues_url":"https://api.github.com/repos/HackGT/ballot/issues{/number}","pulls_url":"https://api.github.com/repos/HackGT/ballot/pulls{/number}","milestones_url":"https://api.github.com/repos/HackGT/ballot/milestones{/number}","notifications_url":"https://api.github.com/repos/HackGT/ballot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackGT/ballot/labels{/name}","releases_url":"https://api.github.com/repos/HackGT/ballot/releases{/id}","deployments_url":"https://api.github.com/repos/HackGT/ballot/deployments","created_at":"2018-01-28T19:50:48Z","updated_at":"2018-02-08T21:58:19Z","pushed_at":"2018-03-04T04:34:33Z","git_url":"git://github.com/HackGT/ballot.git","ssh_url":"git@github.com:HackGT/ballot.git","clone_url":"https://github.com/HackGT/ballot.git","svn_url":"https://github.com/HackGT/ballot","homepage":null,"size":487,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"HackGT:master","ref":"master","sha":"fa28f56cbdb74b1f615688ec7f50563b68de8f3f","user":{"login":"HackGT","id":10822553,"avatar_url":"https://avatars0.githubusercontent.com/u/10822553?v=4","gravatar_id":"","url":"https://api.github.com/users/HackGT","html_url":"https://github.com/HackGT","followers_url":"https://api.github.com/users/HackGT/followers","following_url":"https://api.github.com/users/HackGT/following{/other_user}","gists_url":"https://api.github.com/users/HackGT/gists{/gist_id}","starred_url":"https://api.github.com/users/HackGT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackGT/subscriptions","organizations_url":"https://api.github.com/users/HackGT/orgs","repos_url":"https://api.github.com/users/HackGT/repos","events_url":"https://api.github.com/users/HackGT/events{/privacy}","received_events_url":"https://api.github.com/users/HackGT/received_events","type":"Organization","site_admin":false},"repo":{"id":119292108,"name":"ballot","full_name":"HackGT/ballot","owner":{"login":"HackGT","id":10822553,"avatar_url":"https://avatars0.githubusercontent.com/u/10822553?v=4","gravatar_id":"","url":"https://api.github.com/users/HackGT","html_url":"https://github.com/HackGT","followers_url":"https://api.github.com/users/HackGT/followers","following_url":"https://api.github.com/users/HackGT/following{/other_user}","gists_url":"https://api.github.com/users/HackGT/gists{/gist_id}","starred_url":"https://api.github.com/users/HackGT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackGT/subscriptions","organizations_url":"https://api.github.com/users/HackGT/orgs","repos_url":"https://api.github.com/users/HackGT/repos","events_url":"https://api.github.com/users/HackGT/events{/privacy}","received_events_url":"https://api.github.com/users/HackGT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HackGT/ballot","description":null,"fork":false,"url":"https://api.github.com/repos/HackGT/ballot","forks_url":"https://api.github.com/repos/HackGT/ballot/forks","keys_url":"https://api.github.com/repos/HackGT/ballot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackGT/ballot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackGT/ballot/teams","hooks_url":"https://api.github.com/repos/HackGT/ballot/hooks","issue_events_url":"https://api.github.com/repos/HackGT/ballot/issues/events{/number}","events_url":"https://api.github.com/repos/HackGT/ballot/events","assignees_url":"https://api.github.com/repos/HackGT/ballot/assignees{/user}","branches_url":"https://api.github.com/repos/HackGT/ballot/branches{/branch}","tags_url":"https://api.github.com/repos/HackGT/ballot/tags","blobs_url":"https://api.github.com/repos/HackGT/ballot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackGT/ballot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackGT/ballot/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackGT/ballot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackGT/ballot/statuses/{sha}","languages_url":"https://api.github.com/repos/HackGT/ballot/languages","stargazers_url":"https://api.github.com/repos/HackGT/ballot/stargazers","contributors_url":"https://api.github.com/repos/HackGT/ballot/contributors","subscribers_url":"https://api.github.com/repos/HackGT/ballot/subscribers","subscription_url":"https://api.github.com/repos/HackGT/ballot/subscription","commits_url":"https://api.github.com/repos/HackGT/ballot/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackGT/ballot/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackGT/ballot/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackGT/ballot/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackGT/ballot/contents/{+path}","compare_url":"https://api.github.com/repos/HackGT/ballot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackGT/ballot/merges","archive_url":"https://api.github.com/repos/HackGT/ballot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackGT/ballot/downloads","issues_url":"https://api.github.com/repos/HackGT/ballot/issues{/number}","pulls_url":"https://api.github.com/repos/HackGT/ballot/pulls{/number}","milestones_url":"https://api.github.com/repos/HackGT/ballot/milestones{/number}","notifications_url":"https://api.github.com/repos/HackGT/ballot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackGT/ballot/labels{/name}","releases_url":"https://api.github.com/repos/HackGT/ballot/releases{/id}","deployments_url":"https://api.github.com/repos/HackGT/ballot/deployments","created_at":"2018-01-28T19:50:48Z","updated_at":"2018-02-08T21:58:19Z","pushed_at":"2018-03-04T04:34:33Z","git_url":"git://github.com/HackGT/ballot.git","ssh_url":"git@github.com:HackGT/ballot.git","clone_url":"https://github.com/HackGT/ballot.git","svn_url":"https://github.com/HackGT/ballot","homepage":null,"size":487,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/39"},"html":{"href":"https://github.com/HackGT/ballot/pull/39"},"issue":{"href":"https://api.github.com/repos/HackGT/ballot/issues/39"},"comments":{"href":"https://api.github.com/repos/HackGT/ballot/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackGT/ballot/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/HackGT/ballot/statuses/1130c69e3bb57fe175a735fa40119ae7dded399b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AJLiu"}}