{"action":"created","comment":{"url":"https://api.github.com/repos/dataloom/gallery/pulls/comments/171342868","pull_request_review_id":100140716,"id":171342868,"diff_hunk":"@@ -91,6 +94,26 @@ export default function reducer(state :Immutable.Map<*, *> = INITIAL_STATE, acti\n     case actionTypes.RESET_PERMISSIONS:\n       return INITIAL_STATE;\n \n+    case actionTypes.SET_ORGS_MEMBERS:\n+      const orgMembersMerge = {\n+        orgsMembers: {\n+          [action.members.orgId]: action.members.members\n+        }\n+      }\n+      return state.mergeDeep(orgMembersMerge);\n+\n+    case actionTypes.SET_ORGS_MEMBERS_FAILURE:\n+      return state;\n+\n+    case actionTypes.SET_ORGS_ROLES:\n+      const orgRolesMerge = {\n+        orgsRoles: action.roles\n+      }\n+      return state.mergeDeep(orgRolesMerge);\n+\n+    case actionTypes.SET_ORGS_ROLES_FAILURE:\n+      return state;","path":"src/containers/permissionssummary/PermissionsSummaryReducer.js","position":64,"original_position":64,"commit_id":"002e764360a9e301a223094c5d2bccb80116d878","original_commit_id":"002e764360a9e301a223094c5d2bccb80116d878","user":{"login":"UnsungHero97","id":440299,"avatar_url":"https://avatars1.githubusercontent.com/u/440299?v=4","gravatar_id":"","url":"https://api.github.com/users/UnsungHero97","html_url":"https://github.com/UnsungHero97","followers_url":"https://api.github.com/users/UnsungHero97/followers","following_url":"https://api.github.com/users/UnsungHero97/following{/other_user}","gists_url":"https://api.github.com/users/UnsungHero97/gists{/gist_id}","starred_url":"https://api.github.com/users/UnsungHero97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnsungHero97/subscriptions","organizations_url":"https://api.github.com/users/UnsungHero97/orgs","repos_url":"https://api.github.com/users/UnsungHero97/repos","events_url":"https://api.github.com/users/UnsungHero97/events{/privacy}","received_events_url":"https://api.github.com/users/UnsungHero97/received_events","type":"User","site_admin":false},"body":"Perhaps set `orgsRoles` to empty map?","created_at":"2018-02-28T18:38:10Z","updated_at":"2018-02-28T18:42:00Z","html_url":"https://github.com/dataloom/gallery/pull/515#discussion_r171342868","pull_request_url":"https://api.github.com/repos/dataloom/gallery/pulls/515","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/comments/171342868"},"html":{"href":"https://github.com/dataloom/gallery/pull/515#discussion_r171342868"},"pull_request":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/515"}}},"pull_request":{"url":"https://api.github.com/repos/dataloom/gallery/pulls/515","id":171642778,"html_url":"https://github.com/dataloom/gallery/pull/515","diff_url":"https://github.com/dataloom/gallery/pull/515.diff","patch_url":"https://github.com/dataloom/gallery/pull/515.patch","issue_url":"https://api.github.com/repos/dataloom/gallery/issues/515","number":515,"state":"open","locked":false,"title":"Feature/ps orgs","user":{"login":"corwinc","id":3464996,"avatar_url":"https://avatars3.githubusercontent.com/u/3464996?v=4","gravatar_id":"","url":"https://api.github.com/users/corwinc","html_url":"https://github.com/corwinc","followers_url":"https://api.github.com/users/corwinc/followers","following_url":"https://api.github.com/users/corwinc/following{/other_user}","gists_url":"https://api.github.com/users/corwinc/gists{/gist_id}","starred_url":"https://api.github.com/users/corwinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corwinc/subscriptions","organizations_url":"https://api.github.com/users/corwinc/orgs","repos_url":"https://api.github.com/users/corwinc/repos","events_url":"https://api.github.com/users/corwinc/events{/privacy}","received_events_url":"https://api.github.com/users/corwinc/received_events","type":"User","site_admin":false},"body":"Includes getOrgsRolesEpic & getOrgsMembersEpic.\r\n\r\nTodo: Use roles and members to update logic in either configureAcls fn (PermissionsSummaryEpic.js) or in setRolePermissions & setUserPermissions helper fns (PermissionsSummaryHelpers.js)","created_at":"2018-02-27T12:04:07Z","updated_at":"2018-02-28T18:42:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdc97adb9e6de024e02db14aa945dcd01a1f56f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dataloom/gallery/pulls/515/commits","review_comments_url":"https://api.github.com/repos/dataloom/gallery/pulls/515/comments","review_comment_url":"https://api.github.com/repos/dataloom/gallery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dataloom/gallery/issues/515/comments","statuses_url":"https://api.github.com/repos/dataloom/gallery/statuses/002e764360a9e301a223094c5d2bccb80116d878","head":{"label":"dataloom:feature/ps-orgs","ref":"feature/ps-orgs","sha":"002e764360a9e301a223094c5d2bccb80116d878","user":{"login":"dataloom","id":23568223,"avatar_url":"https://avatars3.githubusercontent.com/u/23568223?v=4","gravatar_id":"","url":"https://api.github.com/users/dataloom","html_url":"https://github.com/dataloom","followers_url":"https://api.github.com/users/dataloom/followers","following_url":"https://api.github.com/users/dataloom/following{/other_user}","gists_url":"https://api.github.com/users/dataloom/gists{/gist_id}","starred_url":"https://api.github.com/users/dataloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dataloom/subscriptions","organizations_url":"https://api.github.com/users/dataloom/orgs","repos_url":"https://api.github.com/users/dataloom/repos","events_url":"https://api.github.com/users/dataloom/events{/privacy}","received_events_url":"https://api.github.com/users/dataloom/received_events","type":"Organization","site_admin":false},"repo":{"id":68751663,"name":"gallery","full_name":"dataloom/gallery","owner":{"login":"dataloom","id":23568223,"avatar_url":"https://avatars3.githubusercontent.com/u/23568223?v=4","gravatar_id":"","url":"https://api.github.com/users/dataloom","html_url":"https://github.com/dataloom","followers_url":"https://api.github.com/users/dataloom/followers","following_url":"https://api.github.com/users/dataloom/following{/other_user}","gists_url":"https://api.github.com/users/dataloom/gists{/gist_id}","starred_url":"https://api.github.com/users/dataloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dataloom/subscriptions","organizations_url":"https://api.github.com/users/dataloom/orgs","repos_url":"https://api.github.com/users/dataloom/repos","events_url":"https://api.github.com/users/dataloom/events{/privacy}","received_events_url":"https://api.github.com/users/dataloom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dataloom/gallery","description":null,"fork":false,"url":"https://api.github.com/repos/dataloom/gallery","forks_url":"https://api.github.com/repos/dataloom/gallery/forks","keys_url":"https://api.github.com/repos/dataloom/gallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dataloom/gallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dataloom/gallery/teams","hooks_url":"https://api.github.com/repos/dataloom/gallery/hooks","issue_events_url":"https://api.github.com/repos/dataloom/gallery/issues/events{/number}","events_url":"https://api.github.com/repos/dataloom/gallery/events","assignees_url":"https://api.github.com/repos/dataloom/gallery/assignees{/user}","branches_url":"https://api.github.com/repos/dataloom/gallery/branches{/branch}","tags_url":"https://api.github.com/repos/dataloom/gallery/tags","blobs_url":"https://api.github.com/repos/dataloom/gallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dataloom/gallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dataloom/gallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/dataloom/gallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dataloom/gallery/statuses/{sha}","languages_url":"https://api.github.com/repos/dataloom/gallery/languages","stargazers_url":"https://api.github.com/repos/dataloom/gallery/stargazers","contributors_url":"https://api.github.com/repos/dataloom/gallery/contributors","subscribers_url":"https://api.github.com/repos/dataloom/gallery/subscribers","subscription_url":"https://api.github.com/repos/dataloom/gallery/subscription","commits_url":"https://api.github.com/repos/dataloom/gallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/dataloom/gallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/dataloom/gallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/dataloom/gallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/dataloom/gallery/contents/{+path}","compare_url":"https://api.github.com/repos/dataloom/gallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dataloom/gallery/merges","archive_url":"https://api.github.com/repos/dataloom/gallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dataloom/gallery/downloads","issues_url":"https://api.github.com/repos/dataloom/gallery/issues{/number}","pulls_url":"https://api.github.com/repos/dataloom/gallery/pulls{/number}","milestones_url":"https://api.github.com/repos/dataloom/gallery/milestones{/number}","notifications_url":"https://api.github.com/repos/dataloom/gallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dataloom/gallery/labels{/name}","releases_url":"https://api.github.com/repos/dataloom/gallery/releases{/id}","deployments_url":"https://api.github.com/repos/dataloom/gallery/deployments","created_at":"2016-09-20T20:42:10Z","updated_at":"2017-05-11T00:07:50Z","pushed_at":"2018-02-28T02:49:09Z","git_url":"git://github.com/dataloom/gallery.git","ssh_url":"git@github.com:dataloom/gallery.git","clone_url":"https://github.com/dataloom/gallery.git","svn_url":"https://github.com/dataloom/gallery","homepage":null,"size":2657,"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":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"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"dataloom:develop","ref":"develop","sha":"a046fa30274e0750b2a92bdfcc9acb61e0458757","user":{"login":"dataloom","id":23568223,"avatar_url":"https://avatars3.githubusercontent.com/u/23568223?v=4","gravatar_id":"","url":"https://api.github.com/users/dataloom","html_url":"https://github.com/dataloom","followers_url":"https://api.github.com/users/dataloom/followers","following_url":"https://api.github.com/users/dataloom/following{/other_user}","gists_url":"https://api.github.com/users/dataloom/gists{/gist_id}","starred_url":"https://api.github.com/users/dataloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dataloom/subscriptions","organizations_url":"https://api.github.com/users/dataloom/orgs","repos_url":"https://api.github.com/users/dataloom/repos","events_url":"https://api.github.com/users/dataloom/events{/privacy}","received_events_url":"https://api.github.com/users/dataloom/received_events","type":"Organization","site_admin":false},"repo":{"id":68751663,"name":"gallery","full_name":"dataloom/gallery","owner":{"login":"dataloom","id":23568223,"avatar_url":"https://avatars3.githubusercontent.com/u/23568223?v=4","gravatar_id":"","url":"https://api.github.com/users/dataloom","html_url":"https://github.com/dataloom","followers_url":"https://api.github.com/users/dataloom/followers","following_url":"https://api.github.com/users/dataloom/following{/other_user}","gists_url":"https://api.github.com/users/dataloom/gists{/gist_id}","starred_url":"https://api.github.com/users/dataloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dataloom/subscriptions","organizations_url":"https://api.github.com/users/dataloom/orgs","repos_url":"https://api.github.com/users/dataloom/repos","events_url":"https://api.github.com/users/dataloom/events{/privacy}","received_events_url":"https://api.github.com/users/dataloom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dataloom/gallery","description":null,"fork":false,"url":"https://api.github.com/repos/dataloom/gallery","forks_url":"https://api.github.com/repos/dataloom/gallery/forks","keys_url":"https://api.github.com/repos/dataloom/gallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dataloom/gallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dataloom/gallery/teams","hooks_url":"https://api.github.com/repos/dataloom/gallery/hooks","issue_events_url":"https://api.github.com/repos/dataloom/gallery/issues/events{/number}","events_url":"https://api.github.com/repos/dataloom/gallery/events","assignees_url":"https://api.github.com/repos/dataloom/gallery/assignees{/user}","branches_url":"https://api.github.com/repos/dataloom/gallery/branches{/branch}","tags_url":"https://api.github.com/repos/dataloom/gallery/tags","blobs_url":"https://api.github.com/repos/dataloom/gallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dataloom/gallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dataloom/gallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/dataloom/gallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dataloom/gallery/statuses/{sha}","languages_url":"https://api.github.com/repos/dataloom/gallery/languages","stargazers_url":"https://api.github.com/repos/dataloom/gallery/stargazers","contributors_url":"https://api.github.com/repos/dataloom/gallery/contributors","subscribers_url":"https://api.github.com/repos/dataloom/gallery/subscribers","subscription_url":"https://api.github.com/repos/dataloom/gallery/subscription","commits_url":"https://api.github.com/repos/dataloom/gallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/dataloom/gallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/dataloom/gallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/dataloom/gallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/dataloom/gallery/contents/{+path}","compare_url":"https://api.github.com/repos/dataloom/gallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dataloom/gallery/merges","archive_url":"https://api.github.com/repos/dataloom/gallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dataloom/gallery/downloads","issues_url":"https://api.github.com/repos/dataloom/gallery/issues{/number}","pulls_url":"https://api.github.com/repos/dataloom/gallery/pulls{/number}","milestones_url":"https://api.github.com/repos/dataloom/gallery/milestones{/number}","notifications_url":"https://api.github.com/repos/dataloom/gallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dataloom/gallery/labels{/name}","releases_url":"https://api.github.com/repos/dataloom/gallery/releases{/id}","deployments_url":"https://api.github.com/repos/dataloom/gallery/deployments","created_at":"2016-09-20T20:42:10Z","updated_at":"2017-05-11T00:07:50Z","pushed_at":"2018-02-28T02:49:09Z","git_url":"git://github.com/dataloom/gallery.git","ssh_url":"git@github.com:dataloom/gallery.git","clone_url":"https://github.com/dataloom/gallery.git","svn_url":"https://github.com/dataloom/gallery","homepage":null,"size":2657,"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":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"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/515"},"html":{"href":"https://github.com/dataloom/gallery/pull/515"},"issue":{"href":"https://api.github.com/repos/dataloom/gallery/issues/515"},"comments":{"href":"https://api.github.com/repos/dataloom/gallery/issues/515/comments"},"review_comments":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/515/comments"},"review_comment":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dataloom/gallery/pulls/515/commits"},"statuses":{"href":"https://api.github.com/repos/dataloom/gallery/statuses/002e764360a9e301a223094c5d2bccb80116d878"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"UnsungHero97"}}