{"action":"created","comment":{"url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/comments/106934247","pull_request_review_id":27879074,"id":106934247,"diff_hunk":"@@ -142,13 +143,17 @@ def dashboard_users(self):\n         return self._dashboard_users\n \n     def _get_user_groups(self, user):\n-        user_id = user.getId()\n-        ap = self._dmd.zport.acl_users.manage_getUserRolesAndPermissions(user_id)\n-        if ZEN_MANAGE_DMD in ap.get('allowed_permissions', {}):\n-            groups_names = user.getAllGroupSettingsNames()\n-        else:\n-            groups_names = user.getUserGroupSettingsNames()\n-        return groups_names\n+        group_names = []\n+        try:\n+            user_id = user.getId()\n+            ap = self._dmd.zport.acl_users.manage_getUserRolesAndPermissions(user_id)\n+            if ZEN_MANAGE_DMD in ap.get('allowed_permissions', {}):\n+                group_names = user.getAllGroupSettingsNames()\n+            else:\n+                group_names = user.getUserGroupSettingsNames()\n+        except Exception as e:\n+            log.warn(\"Could not retrieve user {}'s groups: {}\".format(user, e))","path":"Products/ZenUtils/manage_dashboard_state.py","position":28,"original_position":28,"commit_id":"8b32061290a3cbae45d5e2d0fb58c5136f761422","original_commit_id":"8b32061290a3cbae45d5e2d0fb58c5136f761422","user":{"login":"mozart27","id":359968,"avatar_url":"https://avatars0.githubusercontent.com/u/359968?v=3","gravatar_id":"","url":"https://api.github.com/users/mozart27","html_url":"https://github.com/mozart27","followers_url":"https://api.github.com/users/mozart27/followers","following_url":"https://api.github.com/users/mozart27/following{/other_user}","gists_url":"https://api.github.com/users/mozart27/gists{/gist_id}","starred_url":"https://api.github.com/users/mozart27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozart27/subscriptions","organizations_url":"https://api.github.com/users/mozart27/orgs","repos_url":"https://api.github.com/users/mozart27/repos","events_url":"https://api.github.com/users/mozart27/events{/privacy}","received_events_url":"https://api.github.com/users/mozart27/received_events","type":"User","site_admin":false},"body":"Should this be an `error` instead of a `warn`?","created_at":"2017-03-20T15:38:12Z","updated_at":"2017-03-20T15:39:41Z","html_url":"https://github.com/zenoss/zenoss-prodbin/pull/2197#discussion_r106934247","pull_request_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197","_links":{"self":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/comments/106934247"},"html":{"href":"https://github.com/zenoss/zenoss-prodbin/pull/2197#discussion_r106934247"},"pull_request":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197"}}},"pull_request":{"url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197","id":111573780,"html_url":"https://github.com/zenoss/zenoss-prodbin/pull/2197","diff_url":"https://github.com/zenoss/zenoss-prodbin/pull/2197.diff","patch_url":"https://github.com/zenoss/zenoss-prodbin/pull/2197.patch","issue_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/2197","number":2197,"state":"open","locked":false,"title":"ZEN-26380: manage dashboards tool: handle exception retrieving user g…","user":{"login":"fraibacas","id":3450781,"avatar_url":"https://avatars3.githubusercontent.com/u/3450781?v=3","gravatar_id":"","url":"https://api.github.com/users/fraibacas","html_url":"https://github.com/fraibacas","followers_url":"https://api.github.com/users/fraibacas/followers","following_url":"https://api.github.com/users/fraibacas/following{/other_user}","gists_url":"https://api.github.com/users/fraibacas/gists{/gist_id}","starred_url":"https://api.github.com/users/fraibacas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraibacas/subscriptions","organizations_url":"https://api.github.com/users/fraibacas/orgs","repos_url":"https://api.github.com/users/fraibacas/repos","events_url":"https://api.github.com/users/fraibacas/events{/privacy}","received_events_url":"https://api.github.com/users/fraibacas/received_events","type":"User","site_admin":false},"body":"…roups","created_at":"2017-03-20T15:07:24Z","updated_at":"2017-03-20T15:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf73d1d3e51bf1d10796ddf588947e2625531ff0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197/commits","review_comments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197/comments","review_comment_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/2197/comments","statuses_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/statuses/8b32061290a3cbae45d5e2d0fb58c5136f761422","head":{"label":"zenoss:dashboard_tool_exception","ref":"dashboard_tool_exception","sha":"8b32061290a3cbae45d5e2d0fb58c5136f761422","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars1.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":10389144,"name":"zenoss-prodbin","full_name":"zenoss/zenoss-prodbin","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars1.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/zenoss-prodbin","description":"Zenoss - zenoss-prodbin module","fork":false,"url":"https://api.github.com/repos/zenoss/zenoss-prodbin","forks_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/forks","keys_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/teams","hooks_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/hooks","issue_events_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/events","assignees_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/tags","blobs_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/languages","stargazers_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/stargazers","contributors_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/contributors","subscribers_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/subscribers","subscription_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/subscription","commits_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/merges","archive_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/downloads","issues_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/releases{/id}","deployments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/deployments","created_at":"2013-05-30T18:36:05Z","updated_at":"2017-01-09T20:22:20Z","pushed_at":"2017-03-20T15:13:50Z","git_url":"git://github.com/zenoss/zenoss-prodbin.git","ssh_url":"git@github.com:zenoss/zenoss-prodbin.git","clone_url":"https://github.com/zenoss/zenoss-prodbin.git","svn_url":"https://github.com/zenoss/zenoss-prodbin","homepage":"http://www.zenoss.com","size":577142,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":15,"default_branch":"develop"}},"base":{"label":"zenoss:develop","ref":"develop","sha":"42f7ffd725da656b2d2a313eab01d4ee11ed14b2","user":{"login":"zenoss","id":243767,"avatar_url":"https://avatars1.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"repo":{"id":10389144,"name":"zenoss-prodbin","full_name":"zenoss/zenoss-prodbin","owner":{"login":"zenoss","id":243767,"avatar_url":"https://avatars1.githubusercontent.com/u/243767?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoss","html_url":"https://github.com/zenoss","followers_url":"https://api.github.com/users/zenoss/followers","following_url":"https://api.github.com/users/zenoss/following{/other_user}","gists_url":"https://api.github.com/users/zenoss/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoss/subscriptions","organizations_url":"https://api.github.com/users/zenoss/orgs","repos_url":"https://api.github.com/users/zenoss/repos","events_url":"https://api.github.com/users/zenoss/events{/privacy}","received_events_url":"https://api.github.com/users/zenoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zenoss/zenoss-prodbin","description":"Zenoss - zenoss-prodbin module","fork":false,"url":"https://api.github.com/repos/zenoss/zenoss-prodbin","forks_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/forks","keys_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/teams","hooks_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/hooks","issue_events_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/events{/number}","events_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/events","assignees_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/assignees{/user}","branches_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/branches{/branch}","tags_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/tags","blobs_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/refs{/sha}","trees_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/statuses/{sha}","languages_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/languages","stargazers_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/stargazers","contributors_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/contributors","subscribers_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/subscribers","subscription_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/subscription","commits_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/commits{/sha}","git_commits_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/git/commits{/sha}","comments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/comments{/number}","issue_comment_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/comments{/number}","contents_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/contents/{+path}","compare_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/merges","archive_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/downloads","issues_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues{/number}","pulls_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls{/number}","milestones_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/milestones{/number}","notifications_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/labels{/name}","releases_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/releases{/id}","deployments_url":"https://api.github.com/repos/zenoss/zenoss-prodbin/deployments","created_at":"2013-05-30T18:36:05Z","updated_at":"2017-01-09T20:22:20Z","pushed_at":"2017-03-20T15:13:50Z","git_url":"git://github.com/zenoss/zenoss-prodbin.git","ssh_url":"git@github.com:zenoss/zenoss-prodbin.git","clone_url":"https://github.com/zenoss/zenoss-prodbin.git","svn_url":"https://github.com/zenoss/zenoss-prodbin","homepage":"http://www.zenoss.com","size":577142,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197"},"html":{"href":"https://github.com/zenoss/zenoss-prodbin/pull/2197"},"issue":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/2197"},"comments":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/issues/2197/comments"},"review_comments":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197/comments"},"review_comment":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/pulls/2197/commits"},"statuses":{"href":"https://api.github.com/repos/zenoss/zenoss-prodbin/statuses/8b32061290a3cbae45d5e2d0fb58c5136f761422"}}}}
{"actor":{"display_login":"mozart27"}}