{"action":"created","comment":{"url":"https://api.github.com/repos/ProjectResound/store-upload/pulls/comments/226776226","pull_request_review_id":166689025,"id":226776226,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjc3NjIyNg==","diff_hunk":"@@ -16,16 +16,22 @@ const UserStore = assign({}, EventEmitter.prototype, {\n     this.removeListener(\"change\", cb);\n   },\n \n-  handleIdToken(accessToken, idToken) {\n-    resoundAPI.users.create(accessToken, idToken);\n+  handleIdToken(accessToken, idToken, tenant) {\n+    return resoundAPI.users.create(accessToken, idToken, tenant);\n   }\n });\n \n AppDispatcher.register(action => {\n   switch (action.actionType) {\n     case \"USER_LOGGED_IN\":\n-      UserStore.emitChange();\n-      UserStore.handleIdToken(action.accessToken, action.idToken);\n+      UserStore.handleIdToken(\n+        action.accessToken,\n+        action.idToken,\n+        action.tenant\n+      ).then(() => {\n+        UserStore.emitChange();\n+        window.location.reload();\n+      });","path":"src/scripts/stores/user-store.jsx","position":23,"original_position":23,"commit_id":"bfd3d13527dba1843b1f73ac8be2d30092e0ad4a","original_commit_id":"bfd3d13527dba1843b1f73ac8be2d30092e0ad4a","user":{"login":"nakedsushi","id":360040,"node_id":"MDQ6VXNlcjM2MDA0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/360040?v=4","gravatar_id":"","url":"https://api.github.com/users/nakedsushi","html_url":"https://github.com/nakedsushi","followers_url":"https://api.github.com/users/nakedsushi/followers","following_url":"https://api.github.com/users/nakedsushi/following{/other_user}","gists_url":"https://api.github.com/users/nakedsushi/gists{/gist_id}","starred_url":"https://api.github.com/users/nakedsushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakedsushi/subscriptions","organizations_url":"https://api.github.com/users/nakedsushi/orgs","repos_url":"https://api.github.com/users/nakedsushi/repos","events_url":"https://api.github.com/users/nakedsushi/events{/privacy}","received_events_url":"https://api.github.com/users/nakedsushi/received_events","type":"User","site_admin":false},"body":"I see what you mean now. It happens during the first loading of resound right after authenticating. Yes, it makes sense. Let's put this change into `jonatasrancan:multi-tenancy` branch too and plan to merge that into master.","created_at":"2018-10-19T20:42:54Z","updated_at":"2018-10-19T20:42:54Z","html_url":"https://github.com/ProjectResound/store-upload/pull/28#discussion_r226776226","pull_request_url":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/comments/226776226"},"html":{"href":"https://github.com/ProjectResound/store-upload/pull/28#discussion_r226776226"},"pull_request":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28"}},"in_reply_to_id":226666153},"pull_request":{"url":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28","id":224300155,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MzAwMTU1","html_url":"https://github.com/ProjectResound/store-upload/pull/28","diff_url":"https://github.com/ProjectResound/store-upload/pull/28.diff","patch_url":"https://github.com/ProjectResound/store-upload/pull/28.patch","issue_url":"https://api.github.com/repos/ProjectResound/store-upload/issues/28","number":28,"state":"open","locked":false,"title":"Multi tenancy heroku","user":{"login":"jonatasrancan","id":651096,"node_id":"MDQ6VXNlcjY1MTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/651096?v=4","gravatar_id":"","url":"https://api.github.com/users/jonatasrancan","html_url":"https://github.com/jonatasrancan","followers_url":"https://api.github.com/users/jonatasrancan/followers","following_url":"https://api.github.com/users/jonatasrancan/following{/other_user}","gists_url":"https://api.github.com/users/jonatasrancan/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatasrancan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatasrancan/subscriptions","organizations_url":"https://api.github.com/users/jonatasrancan/orgs","repos_url":"https://api.github.com/users/jonatasrancan/repos","events_url":"https://api.github.com/users/jonatasrancan/events{/privacy}","received_events_url":"https://api.github.com/users/jonatasrancan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-19T14:09:47Z","updated_at":"2018-10-19T20:42:54Z","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/ProjectResound/store-upload/pulls/28/commits","review_comments_url":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28/comments","review_comment_url":"https://api.github.com/repos/ProjectResound/store-upload/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProjectResound/store-upload/issues/28/comments","statuses_url":"https://api.github.com/repos/ProjectResound/store-upload/statuses/bfd3d13527dba1843b1f73ac8be2d30092e0ad4a","head":{"label":"jonatasrancan:multi-tenancy-heroku","ref":"multi-tenancy-heroku","sha":"bfd3d13527dba1843b1f73ac8be2d30092e0ad4a","user":{"login":"jonatasrancan","id":651096,"node_id":"MDQ6VXNlcjY1MTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/651096?v=4","gravatar_id":"","url":"https://api.github.com/users/jonatasrancan","html_url":"https://github.com/jonatasrancan","followers_url":"https://api.github.com/users/jonatasrancan/followers","following_url":"https://api.github.com/users/jonatasrancan/following{/other_user}","gists_url":"https://api.github.com/users/jonatasrancan/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatasrancan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatasrancan/subscriptions","organizations_url":"https://api.github.com/users/jonatasrancan/orgs","repos_url":"https://api.github.com/users/jonatasrancan/repos","events_url":"https://api.github.com/users/jonatasrancan/events{/privacy}","received_events_url":"https://api.github.com/users/jonatasrancan/received_events","type":"User","site_admin":false},"repo":{"id":149658069,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2NTgwNjk=","name":"store-upload","full_name":"jonatasrancan/store-upload","private":false,"owner":{"login":"jonatasrancan","id":651096,"node_id":"MDQ6VXNlcjY1MTA5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/651096?v=4","gravatar_id":"","url":"https://api.github.com/users/jonatasrancan","html_url":"https://github.com/jonatasrancan","followers_url":"https://api.github.com/users/jonatasrancan/followers","following_url":"https://api.github.com/users/jonatasrancan/following{/other_user}","gists_url":"https://api.github.com/users/jonatasrancan/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatasrancan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatasrancan/subscriptions","organizations_url":"https://api.github.com/users/jonatasrancan/orgs","repos_url":"https://api.github.com/users/jonatasrancan/repos","events_url":"https://api.github.com/users/jonatasrancan/events{/privacy}","received_events_url":"https://api.github.com/users/jonatasrancan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jonatasrancan/store-upload","description":"Client that lets users upload WAVs to the resound-api","fork":true,"url":"https://api.github.com/repos/jonatasrancan/store-upload","forks_url":"https://api.github.com/repos/jonatasrancan/store-upload/forks","keys_url":"https://api.github.com/repos/jonatasrancan/store-upload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonatasrancan/store-upload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonatasrancan/store-upload/teams","hooks_url":"https://api.github.com/repos/jonatasrancan/store-upload/hooks","issue_events_url":"https://api.github.com/repos/jonatasrancan/store-upload/issues/events{/number}","events_url":"https://api.github.com/repos/jonatasrancan/store-upload/events","assignees_url":"https://api.github.com/repos/jonatasrancan/store-upload/assignees{/user}","branches_url":"https://api.github.com/repos/jonatasrancan/store-upload/branches{/branch}","tags_url":"https://api.github.com/repos/jonatasrancan/store-upload/tags","blobs_url":"https://api.github.com/repos/jonatasrancan/store-upload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonatasrancan/store-upload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonatasrancan/store-upload/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonatasrancan/store-upload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonatasrancan/store-upload/statuses/{sha}","languages_url":"https://api.github.com/repos/jonatasrancan/store-upload/languages","stargazers_url":"https://api.github.com/repos/jonatasrancan/store-upload/stargazers","contributors_url":"https://api.github.com/repos/jonatasrancan/store-upload/contributors","subscribers_url":"https://api.github.com/repos/jonatasrancan/store-upload/subscribers","subscription_url":"https://api.github.com/repos/jonatasrancan/store-upload/subscription","commits_url":"https://api.github.com/repos/jonatasrancan/store-upload/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonatasrancan/store-upload/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonatasrancan/store-upload/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonatasrancan/store-upload/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonatasrancan/store-upload/contents/{+path}","compare_url":"https://api.github.com/repos/jonatasrancan/store-upload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonatasrancan/store-upload/merges","archive_url":"https://api.github.com/repos/jonatasrancan/store-upload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonatasrancan/store-upload/downloads","issues_url":"https://api.github.com/repos/jonatasrancan/store-upload/issues{/number}","pulls_url":"https://api.github.com/repos/jonatasrancan/store-upload/pulls{/number}","milestones_url":"https://api.github.com/repos/jonatasrancan/store-upload/milestones{/number}","notifications_url":"https://api.github.com/repos/jonatasrancan/store-upload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonatasrancan/store-upload/labels{/name}","releases_url":"https://api.github.com/repos/jonatasrancan/store-upload/releases{/id}","deployments_url":"https://api.github.com/repos/jonatasrancan/store-upload/deployments","created_at":"2018-09-20T19:13:00Z","updated_at":"2018-10-11T19:18:19Z","pushed_at":"2018-10-19T14:00:46Z","git_url":"git://github.com/jonatasrancan/store-upload.git","ssh_url":"git@github.com:jonatasrancan/store-upload.git","clone_url":"https://github.com/jonatasrancan/store-upload.git","svn_url":"https://github.com/jonatasrancan/store-upload","homepage":"","size":748,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ProjectResound:master","ref":"master","sha":"4e246876734d1a1787ba07699e800695ad79f0c7","user":{"login":"ProjectResound","id":22082123,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDgyMTIz","avatar_url":"https://avatars0.githubusercontent.com/u/22082123?v=4","gravatar_id":"","url":"https://api.github.com/users/ProjectResound","html_url":"https://github.com/ProjectResound","followers_url":"https://api.github.com/users/ProjectResound/followers","following_url":"https://api.github.com/users/ProjectResound/following{/other_user}","gists_url":"https://api.github.com/users/ProjectResound/gists{/gist_id}","starred_url":"https://api.github.com/users/ProjectResound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProjectResound/subscriptions","organizations_url":"https://api.github.com/users/ProjectResound/orgs","repos_url":"https://api.github.com/users/ProjectResound/repos","events_url":"https://api.github.com/users/ProjectResound/events{/privacy}","received_events_url":"https://api.github.com/users/ProjectResound/received_events","type":"Organization","site_admin":false},"repo":{"id":88551309,"node_id":"MDEwOlJlcG9zaXRvcnk4ODU1MTMwOQ==","name":"store-upload","full_name":"ProjectResound/store-upload","private":false,"owner":{"login":"ProjectResound","id":22082123,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDgyMTIz","avatar_url":"https://avatars0.githubusercontent.com/u/22082123?v=4","gravatar_id":"","url":"https://api.github.com/users/ProjectResound","html_url":"https://github.com/ProjectResound","followers_url":"https://api.github.com/users/ProjectResound/followers","following_url":"https://api.github.com/users/ProjectResound/following{/other_user}","gists_url":"https://api.github.com/users/ProjectResound/gists{/gist_id}","starred_url":"https://api.github.com/users/ProjectResound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProjectResound/subscriptions","organizations_url":"https://api.github.com/users/ProjectResound/orgs","repos_url":"https://api.github.com/users/ProjectResound/repos","events_url":"https://api.github.com/users/ProjectResound/events{/privacy}","received_events_url":"https://api.github.com/users/ProjectResound/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ProjectResound/store-upload","description":"Client that lets users upload WAVs to the resound-api","fork":false,"url":"https://api.github.com/repos/ProjectResound/store-upload","forks_url":"https://api.github.com/repos/ProjectResound/store-upload/forks","keys_url":"https://api.github.com/repos/ProjectResound/store-upload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProjectResound/store-upload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProjectResound/store-upload/teams","hooks_url":"https://api.github.com/repos/ProjectResound/store-upload/hooks","issue_events_url":"https://api.github.com/repos/ProjectResound/store-upload/issues/events{/number}","events_url":"https://api.github.com/repos/ProjectResound/store-upload/events","assignees_url":"https://api.github.com/repos/ProjectResound/store-upload/assignees{/user}","branches_url":"https://api.github.com/repos/ProjectResound/store-upload/branches{/branch}","tags_url":"https://api.github.com/repos/ProjectResound/store-upload/tags","blobs_url":"https://api.github.com/repos/ProjectResound/store-upload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProjectResound/store-upload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProjectResound/store-upload/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProjectResound/store-upload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProjectResound/store-upload/statuses/{sha}","languages_url":"https://api.github.com/repos/ProjectResound/store-upload/languages","stargazers_url":"https://api.github.com/repos/ProjectResound/store-upload/stargazers","contributors_url":"https://api.github.com/repos/ProjectResound/store-upload/contributors","subscribers_url":"https://api.github.com/repos/ProjectResound/store-upload/subscribers","subscription_url":"https://api.github.com/repos/ProjectResound/store-upload/subscription","commits_url":"https://api.github.com/repos/ProjectResound/store-upload/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProjectResound/store-upload/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProjectResound/store-upload/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProjectResound/store-upload/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProjectResound/store-upload/contents/{+path}","compare_url":"https://api.github.com/repos/ProjectResound/store-upload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProjectResound/store-upload/merges","archive_url":"https://api.github.com/repos/ProjectResound/store-upload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProjectResound/store-upload/downloads","issues_url":"https://api.github.com/repos/ProjectResound/store-upload/issues{/number}","pulls_url":"https://api.github.com/repos/ProjectResound/store-upload/pulls{/number}","milestones_url":"https://api.github.com/repos/ProjectResound/store-upload/milestones{/number}","notifications_url":"https://api.github.com/repos/ProjectResound/store-upload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProjectResound/store-upload/labels{/name}","releases_url":"https://api.github.com/repos/ProjectResound/store-upload/releases{/id}","deployments_url":"https://api.github.com/repos/ProjectResound/store-upload/deployments","created_at":"2017-04-17T21:14:29Z","updated_at":"2018-10-17T18:35:28Z","pushed_at":"2018-10-19T18:33:56Z","git_url":"git://github.com/ProjectResound/store-upload.git","ssh_url":"git@github.com:ProjectResound/store-upload.git","clone_url":"https://github.com/ProjectResound/store-upload.git","svn_url":"https://github.com/ProjectResound/store-upload","homepage":"","size":800,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":6,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28"},"html":{"href":"https://github.com/ProjectResound/store-upload/pull/28"},"issue":{"href":"https://api.github.com/repos/ProjectResound/store-upload/issues/28"},"comments":{"href":"https://api.github.com/repos/ProjectResound/store-upload/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProjectResound/store-upload/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/ProjectResound/store-upload/statuses/bfd3d13527dba1843b1f73ac8be2d30092e0ad4a"}},"author_association":"NONE"}}
{"actor":{"display_login":"nakedsushi"}}