payload: {"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/gusta-project/frontend/pulls/27","id":303070044,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAzMDcwMDQ0","html_url":"https://github.com/gusta-project/frontend/pull/27","diff_url":"https://github.com/gusta-project/frontend/pull/27.diff","patch_url":"https://github.com/gusta-project/frontend/pull/27.patch","issue_url":"https://api.github.com/repos/gusta-project/frontend/issues/27","number":27,"state":"closed","locked":false,"title":"Fetch current user after auth","user":{"login":"ayan4m1","id":266545,"node_id":"MDQ6VXNlcjI2NjU0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/266545?v=4","gravatar_id":"","url":"https://api.github.com/users/ayan4m1","html_url":"https://github.com/ayan4m1","followers_url":"https://api.github.com/users/ayan4m1/followers","following_url":"https://api.github.com/users/ayan4m1/following{/other_user}","gists_url":"https://api.github.com/users/ayan4m1/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan4m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan4m1/subscriptions","organizations_url":"https://api.github.com/users/ayan4m1/orgs","repos_url":"https://api.github.com/users/ayan4m1/repos","events_url":"https://api.github.com/users/ayan4m1/events{/privacy}","received_events_url":"https://api.github.com/users/ayan4m1/received_events","type":"User","site_admin":false},"body":"* [Changes](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-d25ba671e0b49dde38d045baa368a1e5L112) the loginUserWorker flow. Now we only request a token if one is needed and only request the current user if one does not exist in the store. This means that `loginUserSuccess` always fires at the end of loginUserWorker and the toast is only shown once.\r\n* [Fixed](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-d25ba671e0b49dde38d045baa368a1e5R73) the route used to get current user info\r\n* [Use](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-bb7a6a61e449a99e756724ffa2c8c109R62) parameter destructuring on the requestTokenSuccess action creator\r\n* [Export](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-cfba9c145ca5d713b626b9c58bb518a7R8) one object which will contain the entire tree of initialState such that the store can be initialized using it\r\n* [Return](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-c561400e3720be1a9b2fea5e84ff802fR8) loggingIn and loggingOut as boolean from related selectors\r\n* [Use](https://github.com/gusta-project/frontend/compare/master...ayan4m1:feature/fetch-current-user?expand=1#diff-8968c62593320351ced6a0ef776ef599R74) the newly-exported initialState to fully initialize the redux store - this is a require and not an import because trying to import it causes a circular dependency","created_at":"2019-07-31T18:14:48Z","updated_at":"2019-08-01T22:17:36Z","closed_at":"2019-08-01T22:17:36Z","merged_at":"2019-08-01T22:17:36Z","merge_commit_sha":"d39d906012aa851561b577f8622559d91776cab2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gusta-project/frontend/pulls/27/commits","review_comments_url":"https://api.github.com/repos/gusta-project/frontend/pulls/27/comments","review_comment_url":"https://api.github.com/repos/gusta-project/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gusta-project/frontend/issues/27/comments","statuses_url":"https://api.github.com/repos/gusta-project/frontend/statuses/504c236e763b98a1ea0a3532eb204ca304779fee","head":{"label":"ayan4m1:feature/fetch-current-user","ref":"feature/fetch-current-user","sha":"504c236e763b98a1ea0a3532eb204ca304779fee","user":{"login":"ayan4m1","id":266545,"node_id":"MDQ6VXNlcjI2NjU0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/266545?v=4","gravatar_id":"","url":"https://api.github.com/users/ayan4m1","html_url":"https://github.com/ayan4m1","followers_url":"https://api.github.com/users/ayan4m1/followers","following_url":"https://api.github.com/users/ayan4m1/following{/other_user}","gists_url":"https://api.github.com/users/ayan4m1/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan4m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan4m1/subscriptions","organizations_url":"https://api.github.com/users/ayan4m1/orgs","repos_url":"https://api.github.com/users/ayan4m1/repos","events_url":"https://api.github.com/users/ayan4m1/events{/privacy}","received_events_url":"https://api.github.com/users/ayan4m1/received_events","type":"User","site_admin":false},"repo":{"id":189764947,"node_id":"MDEwOlJlcG9zaXRvcnkxODk3NjQ5NDc=","name":"frontend","full_name":"ayan4m1/frontend","private":false,"owner":{"login":"ayan4m1","id":266545,"node_id":"MDQ6VXNlcjI2NjU0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/266545?v=4","gravatar_id":"","url":"https://api.github.com/users/ayan4m1","html_url":"https://github.com/ayan4m1","followers_url":"https://api.github.com/users/ayan4m1/followers","following_url":"https://api.github.com/users/ayan4m1/following{/other_user}","gists_url":"https://api.github.com/users/ayan4m1/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan4m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan4m1/subscriptions","organizations_url":"https://api.github.com/users/ayan4m1/orgs","repos_url":"https://api.github.com/users/ayan4m1/repos","events_url":"https://api.github.com/users/ayan4m1/events{/privacy}","received_events_url":"https://api.github.com/users/ayan4m1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ayan4m1/frontend","description":null,"fork":true,"url":"https://api.github.com/repos/ayan4m1/frontend","forks_url":"https://api.github.com/repos/ayan4m1/frontend/forks","keys_url":"https://api.github.com/repos/ayan4m1/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayan4m1/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayan4m1/frontend/teams","hooks_url":"https://api.github.com/repos/ayan4m1/frontend/hooks","issue_events_url":"https://api.github.com/repos/ayan4m1/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/ayan4m1/frontend/events","assignees_url":"https://api.github.com/repos/ayan4m1/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/ayan4m1/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/ayan4m1/frontend/tags","blobs_url":"https://api.github.com/repos/ayan4m1/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayan4m1/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayan4m1/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayan4m1/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayan4m1/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/ayan4m1/frontend/languages","stargazers_url":"https://api.github.com/repos/ayan4m1/frontend/stargazers","contributors_url":"https://api.github.com/repos/ayan4m1/frontend/contributors","subscribers_url":"https://api.github.com/repos/ayan4m1/frontend/subscribers","subscription_url":"https://api.github.com/repos/ayan4m1/frontend/subscription","commits_url":"https://api.github.com/repos/ayan4m1/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayan4m1/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayan4m1/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayan4m1/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayan4m1/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/ayan4m1/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayan4m1/frontend/merges","archive_url":"https://api.github.com/repos/ayan4m1/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayan4m1/frontend/downloads","issues_url":"https://api.github.com/repos/ayan4m1/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/ayan4m1/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/ayan4m1/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/ayan4m1/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayan4m1/frontend/labels{/name}","releases_url":"https://api.github.com/repos/ayan4m1/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/ayan4m1/frontend/deployments","created_at":"2019-06-01T18:21:21Z","updated_at":"2019-07-28T20:44:15Z","pushed_at":"2019-07-31T18:08:57Z","git_url":"git://github.com/ayan4m1/frontend.git","ssh_url":"git@github.com:ayan4m1/frontend.git","clone_url":"https://github.com/ayan4m1/frontend.git","svn_url":"https://github.com/ayan4m1/frontend","homepage":null,"size":639,"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,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gusta-project:master","ref":"master","sha":"3347978a44d34b8666d3caa07025dca920d4a815","user":{"login":"gusta-project","id":50539405,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTM5NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/50539405?v=4","gravatar_id":"","url":"https://api.github.com/users/gusta-project","html_url":"https://github.com/gusta-project","followers_url":"https://api.github.com/users/gusta-project/followers","following_url":"https://api.github.com/users/gusta-project/following{/other_user}","gists_url":"https://api.github.com/users/gusta-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gusta-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gusta-project/subscriptions","organizations_url":"https://api.github.com/users/gusta-project/orgs","repos_url":"https://api.github.com/users/gusta-project/repos","events_url":"https://api.github.com/users/gusta-project/events{/privacy}","received_events_url":"https://api.github.com/users/gusta-project/received_events","type":"Organization","site_admin":false},"repo":{"id":189764775,"node_id":"MDEwOlJlcG9zaXRvcnkxODk3NjQ3NzU=","name":"frontend","full_name":"gusta-project/frontend","private":false,"owner":{"login":"gusta-project","id":50539405,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTM5NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/50539405?v=4","gravatar_id":"","url":"https://api.github.com/users/gusta-project","html_url":"https://github.com/gusta-project","followers_url":"https://api.github.com/users/gusta-project/followers","following_url":"https://api.github.com/users/gusta-project/following{/other_user}","gists_url":"https://api.github.com/users/gusta-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gusta-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gusta-project/subscriptions","organizations_url":"https://api.github.com/users/gusta-project/orgs","repos_url":"https://api.github.com/users/gusta-project/repos","events_url":"https://api.github.com/users/gusta-project/events{/privacy}","received_events_url":"https://api.github.com/users/gusta-project/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gusta-project/frontend","description":null,"fork":false,"url":"https://api.github.com/repos/gusta-project/frontend","forks_url":"https://api.github.com/repos/gusta-project/frontend/forks","keys_url":"https://api.github.com/repos/gusta-project/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gusta-project/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gusta-project/frontend/teams","hooks_url":"https://api.github.com/repos/gusta-project/frontend/hooks","issue_events_url":"https://api.github.com/repos/gusta-project/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/gusta-project/frontend/events","assignees_url":"https://api.github.com/repos/gusta-project/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/gusta-project/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/gusta-project/frontend/tags","blobs_url":"https://api.github.com/repos/gusta-project/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gusta-project/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gusta-project/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/gusta-project/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gusta-project/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/gusta-project/frontend/languages","stargazers_url":"https://api.github.com/repos/gusta-project/frontend/stargazers","contributors_url":"https://api.github.com/repos/gusta-project/frontend/contributors","subscribers_url":"https://api.github.com/repos/gusta-project/frontend/subscribers","subscription_url":"https://api.github.com/repos/gusta-project/frontend/subscription","commits_url":"https://api.github.com/repos/gusta-project/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/gusta-project/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/gusta-project/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/gusta-project/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/gusta-project/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/gusta-project/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gusta-project/frontend/merges","archive_url":"https://api.github.com/repos/gusta-project/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gusta-project/frontend/downloads","issues_url":"https://api.github.com/repos/gusta-project/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/gusta-project/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/gusta-project/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/gusta-project/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gusta-project/frontend/labels{/name}","releases_url":"https://api.github.com/repos/gusta-project/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/gusta-project/frontend/deployments","created_at":"2019-06-01T18:19:25Z","updated_at":"2019-07-31T01:58:16Z","pushed_at":"2019-08-01T22:17:36Z","git_url":"git://github.com/gusta-project/frontend.git","ssh_url":"git@github.com:gusta-project/frontend.git","clone_url":"https://github.com/gusta-project/frontend.git","svn_url":"https://github.com/gusta-project/frontend","homepage":null,"size":643,"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":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gusta-project/frontend/pulls/27"},"html":{"href":"https://github.com/gusta-project/frontend/pull/27"},"issue":{"href":"https://api.github.com/repos/gusta-project/frontend/issues/27"},"comments":{"href":"https://api.github.com/repos/gusta-project/frontend/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/gusta-project/frontend/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/gusta-project/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gusta-project/frontend/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/gusta-project/frontend/statuses/504c236e763b98a1ea0a3532eb204ca304779fee"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ayan4m1","id":266545,"node_id":"MDQ6VXNlcjI2NjU0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/266545?v=4","gravatar_id":"","url":"https://api.github.com/users/ayan4m1","html_url":"https://github.com/ayan4m1","followers_url":"https://api.github.com/users/ayan4m1/followers","following_url":"https://api.github.com/users/ayan4m1/following{/other_user}","gists_url":"https://api.github.com/users/ayan4m1/gists{/gist_id}","starred_url":"https://api.github.com/users/ayan4m1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayan4m1/subscriptions","organizations_url":"https://api.github.com/users/ayan4m1/orgs","repos_url":"https://api.github.com/users/ayan4m1/repos","events_url":"https://api.github.com/users/ayan4m1/events{/privacy}","received_events_url":"https://api.github.com/users/ayan4m1/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":8,"additions":155,"deletions":90,"changed_files":8}}
other: {"actor":{"display_login":"ayan4m1"}}