{"action":"created","comment":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments/171545295","pull_request_review_id":100414686,"id":171545295,"diff_hunk":"@@ -117,10 +128,14 @@ export const UserProfile = React.createClass({\n         }\n         const roles = user.get('roles');\n         const communitiesListTemp = serverCache.getCommunities();\n-        var communitiesList = communitiesListTemp.reduce(function(map, community){\n-            map[community.get('id').replace(new RegExp(\"-\",'g'),\"\")] = community.get('name');\n-            return map;\n-        });\n+        let communitiesList;\n+        if(communitiesListTemp.size > 0){\n+            communitiesList = communitiesListTemp.reduce(function(map, community){\n+                map[community.get('id').replace(new RegExp(\"-\",'g'),\"\")] = community.get('name');\n+                return map;\n+            },{});","path":"webui/src/components/user.jsx","position":42,"original_position":42,"commit_id":"151ee419c5a8e08c3b5f155c1f9919bb74b893e9","original_commit_id":"151ee419c5a8e08c3b5f155c1f9919bb74b893e9","user":{"login":"SarahBA","id":6258644,"avatar_url":"https://avatars3.githubusercontent.com/u/6258644?v=4","gravatar_id":"","url":"https://api.github.com/users/SarahBA","html_url":"https://github.com/SarahBA","followers_url":"https://api.github.com/users/SarahBA/followers","following_url":"https://api.github.com/users/SarahBA/following{/other_user}","gists_url":"https://api.github.com/users/SarahBA/gists{/gist_id}","starred_url":"https://api.github.com/users/SarahBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SarahBA/subscriptions","organizations_url":"https://api.github.com/users/SarahBA/orgs","repos_url":"https://api.github.com/users/SarahBA/repos","events_url":"https://api.github.com/users/SarahBA/events{/privacy}","received_events_url":"https://api.github.com/users/SarahBA/received_events","type":"User","site_admin":false},"body":"Fixing https://github.com/EUDAT-B2SHARE/b2share/issues/1575 ","created_at":"2018-03-01T12:36:21Z","updated_at":"2018-03-01T12:36:21Z","html_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620#discussion_r171545295","pull_request_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments/171545295"},"html":{"href":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620#discussion_r171545295"},"pull_request":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620"}}},"pull_request":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620","id":160627770,"html_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620","diff_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620.diff","patch_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620.patch","issue_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1620","number":1620,"state":"open","locked":false,"title":"Adding UI for publication workflow","user":{"login":"SarahBA","id":6258644,"avatar_url":"https://avatars3.githubusercontent.com/u/6258644?v=4","gravatar_id":"","url":"https://api.github.com/users/SarahBA","html_url":"https://github.com/SarahBA","followers_url":"https://api.github.com/users/SarahBA/followers","following_url":"https://api.github.com/users/SarahBA/following{/other_user}","gists_url":"https://api.github.com/users/SarahBA/gists{/gist_id}","starred_url":"https://api.github.com/users/SarahBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SarahBA/subscriptions","organizations_url":"https://api.github.com/users/SarahBA/orgs","repos_url":"https://api.github.com/users/SarahBA/repos","events_url":"https://api.github.com/users/SarahBA/events{/privacy}","received_events_url":"https://api.github.com/users/SarahBA/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-31T18:43:26Z","updated_at":"2018-03-01T12:36:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acacb169306004acbf5756fe9210205085963255","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620/commits","review_comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620/comments","review_comment_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1620/comments","statuses_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/151ee419c5a8e08c3b5f155c1f9919bb74b893e9","head":{"label":"SarahBA:workflow","ref":"workflow","sha":"151ee419c5a8e08c3b5f155c1f9919bb74b893e9","user":{"login":"SarahBA","id":6258644,"avatar_url":"https://avatars3.githubusercontent.com/u/6258644?v=4","gravatar_id":"","url":"https://api.github.com/users/SarahBA","html_url":"https://github.com/SarahBA","followers_url":"https://api.github.com/users/SarahBA/followers","following_url":"https://api.github.com/users/SarahBA/following{/other_user}","gists_url":"https://api.github.com/users/SarahBA/gists{/gist_id}","starred_url":"https://api.github.com/users/SarahBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SarahBA/subscriptions","organizations_url":"https://api.github.com/users/SarahBA/orgs","repos_url":"https://api.github.com/users/SarahBA/repos","events_url":"https://api.github.com/users/SarahBA/events{/privacy}","received_events_url":"https://api.github.com/users/SarahBA/received_events","type":"User","site_admin":false},"repo":{"id":22840333,"name":"b2share","full_name":"SarahBA/b2share","owner":{"login":"SarahBA","id":6258644,"avatar_url":"https://avatars3.githubusercontent.com/u/6258644?v=4","gravatar_id":"","url":"https://api.github.com/users/SarahBA","html_url":"https://github.com/SarahBA","followers_url":"https://api.github.com/users/SarahBA/followers","following_url":"https://api.github.com/users/SarahBA/following{/other_user}","gists_url":"https://api.github.com/users/SarahBA/gists{/gist_id}","starred_url":"https://api.github.com/users/SarahBA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SarahBA/subscriptions","organizations_url":"https://api.github.com/users/SarahBA/orgs","repos_url":"https://api.github.com/users/SarahBA/repos","events_url":"https://api.github.com/users/SarahBA/events{/privacy}","received_events_url":"https://api.github.com/users/SarahBA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SarahBA/b2share","description":"B2Share adaptions for Invenio.  Used by EUDAT CDI services.","fork":true,"url":"https://api.github.com/repos/SarahBA/b2share","forks_url":"https://api.github.com/repos/SarahBA/b2share/forks","keys_url":"https://api.github.com/repos/SarahBA/b2share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SarahBA/b2share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SarahBA/b2share/teams","hooks_url":"https://api.github.com/repos/SarahBA/b2share/hooks","issue_events_url":"https://api.github.com/repos/SarahBA/b2share/issues/events{/number}","events_url":"https://api.github.com/repos/SarahBA/b2share/events","assignees_url":"https://api.github.com/repos/SarahBA/b2share/assignees{/user}","branches_url":"https://api.github.com/repos/SarahBA/b2share/branches{/branch}","tags_url":"https://api.github.com/repos/SarahBA/b2share/tags","blobs_url":"https://api.github.com/repos/SarahBA/b2share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SarahBA/b2share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SarahBA/b2share/git/refs{/sha}","trees_url":"https://api.github.com/repos/SarahBA/b2share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SarahBA/b2share/statuses/{sha}","languages_url":"https://api.github.com/repos/SarahBA/b2share/languages","stargazers_url":"https://api.github.com/repos/SarahBA/b2share/stargazers","contributors_url":"https://api.github.com/repos/SarahBA/b2share/contributors","subscribers_url":"https://api.github.com/repos/SarahBA/b2share/subscribers","subscription_url":"https://api.github.com/repos/SarahBA/b2share/subscription","commits_url":"https://api.github.com/repos/SarahBA/b2share/commits{/sha}","git_commits_url":"https://api.github.com/repos/SarahBA/b2share/git/commits{/sha}","comments_url":"https://api.github.com/repos/SarahBA/b2share/comments{/number}","issue_comment_url":"https://api.github.com/repos/SarahBA/b2share/issues/comments{/number}","contents_url":"https://api.github.com/repos/SarahBA/b2share/contents/{+path}","compare_url":"https://api.github.com/repos/SarahBA/b2share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SarahBA/b2share/merges","archive_url":"https://api.github.com/repos/SarahBA/b2share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SarahBA/b2share/downloads","issues_url":"https://api.github.com/repos/SarahBA/b2share/issues{/number}","pulls_url":"https://api.github.com/repos/SarahBA/b2share/pulls{/number}","milestones_url":"https://api.github.com/repos/SarahBA/b2share/milestones{/number}","notifications_url":"https://api.github.com/repos/SarahBA/b2share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SarahBA/b2share/labels{/name}","releases_url":"https://api.github.com/repos/SarahBA/b2share/releases{/id}","deployments_url":"https://api.github.com/repos/SarahBA/b2share/deployments","created_at":"2014-08-11T13:40:46Z","updated_at":"2016-11-08T17:28:13Z","pushed_at":"2018-03-01T12:28:11Z","git_url":"git://github.com/SarahBA/b2share.git","ssh_url":"git@github.com:SarahBA/b2share.git","clone_url":"https://github.com/SarahBA/b2share.git","svn_url":"https://github.com/SarahBA/b2share","homepage":"b2share.eudat.eu","size":73823,"stargazers_count":0,"watchers_count":0,"language":"Python","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":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"evolution"}},"base":{"label":"EUDAT-B2SHARE:master","ref":"master","sha":"e5ce0c3fcd520101e3549ab287246fdf34ae6d15","user":{"login":"EUDAT-B2SHARE","id":5012708,"avatar_url":"https://avatars0.githubusercontent.com/u/5012708?v=4","gravatar_id":"","url":"https://api.github.com/users/EUDAT-B2SHARE","html_url":"https://github.com/EUDAT-B2SHARE","followers_url":"https://api.github.com/users/EUDAT-B2SHARE/followers","following_url":"https://api.github.com/users/EUDAT-B2SHARE/following{/other_user}","gists_url":"https://api.github.com/users/EUDAT-B2SHARE/gists{/gist_id}","starred_url":"https://api.github.com/users/EUDAT-B2SHARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EUDAT-B2SHARE/subscriptions","organizations_url":"https://api.github.com/users/EUDAT-B2SHARE/orgs","repos_url":"https://api.github.com/users/EUDAT-B2SHARE/repos","events_url":"https://api.github.com/users/EUDAT-B2SHARE/events{/privacy}","received_events_url":"https://api.github.com/users/EUDAT-B2SHARE/received_events","type":"Organization","site_admin":false},"repo":{"id":7918325,"name":"b2share","full_name":"EUDAT-B2SHARE/b2share","owner":{"login":"EUDAT-B2SHARE","id":5012708,"avatar_url":"https://avatars0.githubusercontent.com/u/5012708?v=4","gravatar_id":"","url":"https://api.github.com/users/EUDAT-B2SHARE","html_url":"https://github.com/EUDAT-B2SHARE","followers_url":"https://api.github.com/users/EUDAT-B2SHARE/followers","following_url":"https://api.github.com/users/EUDAT-B2SHARE/following{/other_user}","gists_url":"https://api.github.com/users/EUDAT-B2SHARE/gists{/gist_id}","starred_url":"https://api.github.com/users/EUDAT-B2SHARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EUDAT-B2SHARE/subscriptions","organizations_url":"https://api.github.com/users/EUDAT-B2SHARE/orgs","repos_url":"https://api.github.com/users/EUDAT-B2SHARE/repos","events_url":"https://api.github.com/users/EUDAT-B2SHARE/events{/privacy}","received_events_url":"https://api.github.com/users/EUDAT-B2SHARE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EUDAT-B2SHARE/b2share","description":"B2Share software for the EUDAT CDI services.","fork":false,"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share","forks_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/forks","keys_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/teams","hooks_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/hooks","issue_events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/events{/number}","events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/events","assignees_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/assignees{/user}","branches_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/branches{/branch}","tags_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/tags","blobs_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/refs{/sha}","trees_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/{sha}","languages_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/languages","stargazers_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/stargazers","contributors_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/contributors","subscribers_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/subscribers","subscription_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/subscription","commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/commits{/sha}","git_commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/commits{/sha}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/comments{/number}","issue_comment_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/comments{/number}","contents_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/contents/{+path}","compare_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/merges","archive_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/downloads","issues_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues{/number}","pulls_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls{/number}","milestones_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/milestones{/number}","notifications_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/labels{/name}","releases_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/releases{/id}","deployments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/deployments","created_at":"2013-01-30T16:21:34Z","updated_at":"2018-01-31T12:40:17Z","pushed_at":"2018-03-01T12:28:12Z","git_url":"git://github.com/EUDAT-B2SHARE/b2share.git","ssh_url":"git@github.com:EUDAT-B2SHARE/b2share.git","clone_url":"https://github.com/EUDAT-B2SHARE/b2share.git","svn_url":"https://github.com/EUDAT-B2SHARE/b2share","homepage":"https://b2share.eudat.eu","size":75771,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":194,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":18,"open_issues":194,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620"},"html":{"href":"https://github.com/EUDAT-B2SHARE/b2share/pull/1620"},"issue":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1620"},"comments":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/1620/comments"},"review_comments":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620/comments"},"review_comment":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/1620/commits"},"statuses":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/151ee419c5a8e08c3b5f155c1f9919bb74b893e9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"SarahBA"}}