{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28","id":204056434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MDU2NDM0","html_url":"https://github.com/nwhacks/nwhacks2019/pull/28","diff_url":"https://github.com/nwhacks/nwhacks2019/pull/28.diff","patch_url":"https://github.com/nwhacks/nwhacks2019/pull/28.patch","issue_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/28","number":28,"state":"open","locked":false,"title":"init hacker application route","user":{"login":"mingyokim","id":21287547,"node_id":"MDQ6VXNlcjIxMjg3NTQ3","avatar_url":"https://avatars2.githubusercontent.com/u/21287547?v=4","gravatar_id":"","url":"https://api.github.com/users/mingyokim","html_url":"https://github.com/mingyokim","followers_url":"https://api.github.com/users/mingyokim/followers","following_url":"https://api.github.com/users/mingyokim/following{/other_user}","gists_url":"https://api.github.com/users/mingyokim/gists{/gist_id}","starred_url":"https://api.github.com/users/mingyokim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingyokim/subscriptions","organizations_url":"https://api.github.com/users/mingyokim/orgs","repos_url":"https://api.github.com/users/mingyokim/repos","events_url":"https://api.github.com/users/mingyokim/events{/privacy}","received_events_url":"https://api.github.com/users/mingyokim/received_events","type":"User","site_admin":false},"body":"## :construction_worker: Changes\r\n\r\nIntroduces `application/hacker` route! It also calls Firestore to determine whether the user has already applied or not (if logged in).\r\n\r\n## :thought_balloon: Notes\r\n\r\nThis PR is also the beginning of storing essential user information into redux on login, and destroying the store on logout. In this PR, we store the hacker application into the store as the user logs in, so that we have that hacker application ready when the login redirects to dashboard. We could also do the same for determining if the user is admin, and a lot of other handy stuff that we know we'll need for sure.\r\n\r\n## :flashlight: Testing Instruction\r\n\r\n### User has already submitted a hacker application\r\n* create a user on firebase authentication\r\n* create a doc in `applications_hacker` with the user's `uid` as the `id`\r\n* Login as that user\r\n- [ ] dashboard says \"you have one hacker application\"\r\n* go to `application/hacker`\r\n- [ ] you are redirected back to `/dashboard`\r\n\r\n### User has not already submitted a hacker application\r\n* create a user on firebase authentication\r\n* ensure there's no doc in`applications_hacker` whose `id` matches the user's `uid`\r\n* Login as that user\r\n- [ ] dashboard says \"you didn't apply as a hacker\"\r\n* go to `application/hacker`\r\n- [ ] you are not redirected to `/dashboard` and tells you to apply","created_at":"2018-07-26T07:52:16Z","updated_at":"2018-07-26T07:52:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28/commits","review_comments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28/comments","review_comment_url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/28/comments","statuses_url":"https://api.github.com/repos/nwhacks/nwhacks2019/statuses/f3b9e7ca932d0a49f6baf558e880bf8e10e4f9dd","head":{"label":"nwhacks:hacker-application-route","ref":"hacker-application-route","sha":"f3b9e7ca932d0a49f6baf558e880bf8e10e4f9dd","user":{"login":"nwhacks","id":7472155,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NzIxNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7472155?v=4","gravatar_id":"","url":"https://api.github.com/users/nwhacks","html_url":"https://github.com/nwhacks","followers_url":"https://api.github.com/users/nwhacks/followers","following_url":"https://api.github.com/users/nwhacks/following{/other_user}","gists_url":"https://api.github.com/users/nwhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhacks/subscriptions","organizations_url":"https://api.github.com/users/nwhacks/orgs","repos_url":"https://api.github.com/users/nwhacks/repos","events_url":"https://api.github.com/users/nwhacks/events{/privacy}","received_events_url":"https://api.github.com/users/nwhacks/received_events","type":"Organization","site_admin":false},"repo":{"id":137170596,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxNzA1OTY=","name":"nwhacks2019","full_name":"nwhacks/nwhacks2019","owner":{"login":"nwhacks","id":7472155,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NzIxNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7472155?v=4","gravatar_id":"","url":"https://api.github.com/users/nwhacks","html_url":"https://github.com/nwhacks","followers_url":"https://api.github.com/users/nwhacks/followers","following_url":"https://api.github.com/users/nwhacks/following{/other_user}","gists_url":"https://api.github.com/users/nwhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhacks/subscriptions","organizations_url":"https://api.github.com/users/nwhacks/orgs","repos_url":"https://api.github.com/users/nwhacks/repos","events_url":"https://api.github.com/users/nwhacks/events{/privacy}","received_events_url":"https://api.github.com/users/nwhacks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nwhacks/nwhacks2019","description":"⛰ The website, registration, and check-in system for nwHacks 2019","fork":false,"url":"https://api.github.com/repos/nwhacks/nwhacks2019","forks_url":"https://api.github.com/repos/nwhacks/nwhacks2019/forks","keys_url":"https://api.github.com/repos/nwhacks/nwhacks2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwhacks/nwhacks2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwhacks/nwhacks2019/teams","hooks_url":"https://api.github.com/repos/nwhacks/nwhacks2019/hooks","issue_events_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/events{/number}","events_url":"https://api.github.com/repos/nwhacks/nwhacks2019/events","assignees_url":"https://api.github.com/repos/nwhacks/nwhacks2019/assignees{/user}","branches_url":"https://api.github.com/repos/nwhacks/nwhacks2019/branches{/branch}","tags_url":"https://api.github.com/repos/nwhacks/nwhacks2019/tags","blobs_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwhacks/nwhacks2019/statuses/{sha}","languages_url":"https://api.github.com/repos/nwhacks/nwhacks2019/languages","stargazers_url":"https://api.github.com/repos/nwhacks/nwhacks2019/stargazers","contributors_url":"https://api.github.com/repos/nwhacks/nwhacks2019/contributors","subscribers_url":"https://api.github.com/repos/nwhacks/nwhacks2019/subscribers","subscription_url":"https://api.github.com/repos/nwhacks/nwhacks2019/subscription","commits_url":"https://api.github.com/repos/nwhacks/nwhacks2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/nwhacks/nwhacks2019/contents/{+path}","compare_url":"https://api.github.com/repos/nwhacks/nwhacks2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwhacks/nwhacks2019/merges","archive_url":"https://api.github.com/repos/nwhacks/nwhacks2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwhacks/nwhacks2019/downloads","issues_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues{/number}","pulls_url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls{/number}","milestones_url":"https://api.github.com/repos/nwhacks/nwhacks2019/milestones{/number}","notifications_url":"https://api.github.com/repos/nwhacks/nwhacks2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwhacks/nwhacks2019/labels{/name}","releases_url":"https://api.github.com/repos/nwhacks/nwhacks2019/releases{/id}","deployments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/deployments","created_at":"2018-06-13T06:14:39Z","updated_at":"2018-07-26T03:21:52Z","pushed_at":"2018-07-26T07:39:03Z","git_url":"git://github.com/nwhacks/nwhacks2019.git","ssh_url":"git@github.com:nwhacks/nwhacks2019.git","clone_url":"https://github.com/nwhacks/nwhacks2019.git","svn_url":"https://github.com/nwhacks/nwhacks2019","homepage":"","size":1201,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"nwhacks:master","ref":"master","sha":"1bc1ef673330775d696b943003feaaaf4bde0392","user":{"login":"nwhacks","id":7472155,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NzIxNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7472155?v=4","gravatar_id":"","url":"https://api.github.com/users/nwhacks","html_url":"https://github.com/nwhacks","followers_url":"https://api.github.com/users/nwhacks/followers","following_url":"https://api.github.com/users/nwhacks/following{/other_user}","gists_url":"https://api.github.com/users/nwhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhacks/subscriptions","organizations_url":"https://api.github.com/users/nwhacks/orgs","repos_url":"https://api.github.com/users/nwhacks/repos","events_url":"https://api.github.com/users/nwhacks/events{/privacy}","received_events_url":"https://api.github.com/users/nwhacks/received_events","type":"Organization","site_admin":false},"repo":{"id":137170596,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxNzA1OTY=","name":"nwhacks2019","full_name":"nwhacks/nwhacks2019","owner":{"login":"nwhacks","id":7472155,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NzIxNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7472155?v=4","gravatar_id":"","url":"https://api.github.com/users/nwhacks","html_url":"https://github.com/nwhacks","followers_url":"https://api.github.com/users/nwhacks/followers","following_url":"https://api.github.com/users/nwhacks/following{/other_user}","gists_url":"https://api.github.com/users/nwhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhacks/subscriptions","organizations_url":"https://api.github.com/users/nwhacks/orgs","repos_url":"https://api.github.com/users/nwhacks/repos","events_url":"https://api.github.com/users/nwhacks/events{/privacy}","received_events_url":"https://api.github.com/users/nwhacks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nwhacks/nwhacks2019","description":"⛰ The website, registration, and check-in system for nwHacks 2019","fork":false,"url":"https://api.github.com/repos/nwhacks/nwhacks2019","forks_url":"https://api.github.com/repos/nwhacks/nwhacks2019/forks","keys_url":"https://api.github.com/repos/nwhacks/nwhacks2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwhacks/nwhacks2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwhacks/nwhacks2019/teams","hooks_url":"https://api.github.com/repos/nwhacks/nwhacks2019/hooks","issue_events_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/events{/number}","events_url":"https://api.github.com/repos/nwhacks/nwhacks2019/events","assignees_url":"https://api.github.com/repos/nwhacks/nwhacks2019/assignees{/user}","branches_url":"https://api.github.com/repos/nwhacks/nwhacks2019/branches{/branch}","tags_url":"https://api.github.com/repos/nwhacks/nwhacks2019/tags","blobs_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwhacks/nwhacks2019/statuses/{sha}","languages_url":"https://api.github.com/repos/nwhacks/nwhacks2019/languages","stargazers_url":"https://api.github.com/repos/nwhacks/nwhacks2019/stargazers","contributors_url":"https://api.github.com/repos/nwhacks/nwhacks2019/contributors","subscribers_url":"https://api.github.com/repos/nwhacks/nwhacks2019/subscribers","subscription_url":"https://api.github.com/repos/nwhacks/nwhacks2019/subscription","commits_url":"https://api.github.com/repos/nwhacks/nwhacks2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwhacks/nwhacks2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/nwhacks/nwhacks2019/contents/{+path}","compare_url":"https://api.github.com/repos/nwhacks/nwhacks2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwhacks/nwhacks2019/merges","archive_url":"https://api.github.com/repos/nwhacks/nwhacks2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwhacks/nwhacks2019/downloads","issues_url":"https://api.github.com/repos/nwhacks/nwhacks2019/issues{/number}","pulls_url":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls{/number}","milestones_url":"https://api.github.com/repos/nwhacks/nwhacks2019/milestones{/number}","notifications_url":"https://api.github.com/repos/nwhacks/nwhacks2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwhacks/nwhacks2019/labels{/name}","releases_url":"https://api.github.com/repos/nwhacks/nwhacks2019/releases{/id}","deployments_url":"https://api.github.com/repos/nwhacks/nwhacks2019/deployments","created_at":"2018-06-13T06:14:39Z","updated_at":"2018-07-26T03:21:52Z","pushed_at":"2018-07-26T07:39:03Z","git_url":"git://github.com/nwhacks/nwhacks2019.git","ssh_url":"git@github.com:nwhacks/nwhacks2019.git","clone_url":"https://github.com/nwhacks/nwhacks2019.git","svn_url":"https://github.com/nwhacks/nwhacks2019","homepage":"","size":1201,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28"},"html":{"href":"https://github.com/nwhacks/nwhacks2019/pull/28"},"issue":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/28"},"comments":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/nwhacks/nwhacks2019/statuses/f3b9e7ca932d0a49f6baf558e880bf8e10e4f9dd"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":517,"deletions":26,"changed_files":27}}
{"actor":{"display_login":"mingyokim"}}