{"action":"created","comment":{"url":"https://api.github.com/repos/mobydq/mobydq/pulls/comments/226270340","pull_request_review_id":166048435,"id":226270340,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjI3MDM0MA==","diff_hunk":"@@ -247,6 +247,51 @@ def test_function_create_new_user_group(self):\n         self.assertEqual(row_data_source_policy[0], 'SELECT')\n         self.assertEqual(row_data_source_policy_admin[0], 'ALL')\n \n+    def test_function_get_all_user_groups(self):\n+        # Insert test get all user group roles\n+\n+        # Prepare database, delete all user group roles in the pg_authid table\n+        delete_user_groups_roles = f'''DELETE FROM pg_authid WHERE rolname LIKE 'user_group_%';'''\n+\n+        # Create new user groups\n+        create_test_user_group_standard = f'''CREATE ROLE user_group_mobydq;'''\n+        self.connection.execute(create_test_user_group_standard)\n+        create_test_user_group_admin = f'''CREATE ROLE user_group_mobydq_admin;'''","path":"test/test_db/test_db.py","position":13,"original_position":13,"commit_id":"3c6ce007bd92e0bb5494fac6debd39c92f1f93b1","original_commit_id":"3c6ce007bd92e0bb5494fac6debd39c92f1f93b1","user":{"login":"ThomasGassmann","id":16067344,"node_id":"MDQ6VXNlcjE2MDY3MzQ0","avatar_url":"https://avatars0.githubusercontent.com/u/16067344?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasGassmann","html_url":"https://github.com/ThomasGassmann","followers_url":"https://api.github.com/users/ThomasGassmann/followers","following_url":"https://api.github.com/users/ThomasGassmann/following{/other_user}","gists_url":"https://api.github.com/users/ThomasGassmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasGassmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasGassmann/subscriptions","organizations_url":"https://api.github.com/users/ThomasGassmann/orgs","repos_url":"https://api.github.com/users/ThomasGassmann/repos","events_url":"https://api.github.com/users/ThomasGassmann/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasGassmann/received_events","type":"User","site_admin":false},"body":"Why f-string?","created_at":"2018-10-18T11:38:03Z","updated_at":"2018-10-18T11:40:02Z","html_url":"https://github.com/mobydq/mobydq/pull/207#discussion_r226270340","pull_request_url":"https://api.github.com/repos/mobydq/mobydq/pulls/207","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/comments/226270340"},"html":{"href":"https://github.com/mobydq/mobydq/pull/207#discussion_r226270340"},"pull_request":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/mobydq/mobydq/pulls/207","id":223917982,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzOTE3OTgy","html_url":"https://github.com/mobydq/mobydq/pull/207","diff_url":"https://github.com/mobydq/mobydq/pull/207.diff","patch_url":"https://github.com/mobydq/mobydq/pull/207.patch","issue_url":"https://api.github.com/repos/mobydq/mobydq/issues/207","number":207,"state":"open","locked":false,"title":"#156 implementation of get_user_groups functions","user":{"login":"matalie","id":29657196,"node_id":"MDQ6VXNlcjI5NjU3MTk2","avatar_url":"https://avatars3.githubusercontent.com/u/29657196?v=4","gravatar_id":"","url":"https://api.github.com/users/matalie","html_url":"https://github.com/matalie","followers_url":"https://api.github.com/users/matalie/followers","following_url":"https://api.github.com/users/matalie/following{/other_user}","gists_url":"https://api.github.com/users/matalie/gists{/gist_id}","starred_url":"https://api.github.com/users/matalie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matalie/subscriptions","organizations_url":"https://api.github.com/users/matalie/orgs","repos_url":"https://api.github.com/users/matalie/repos","events_url":"https://api.github.com/users/matalie/events{/privacy}","received_events_url":"https://api.github.com/users/matalie/received_events","type":"User","site_admin":false},"body":"Implement get all user groups function\r\nImplement get user group of user function\r\nWrite tests for new implemented functions","created_at":"2018-10-18T11:19:42Z","updated_at":"2018-10-18T11:40:02Z","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/mobydq/mobydq/pulls/207/commits","review_comments_url":"https://api.github.com/repos/mobydq/mobydq/pulls/207/comments","review_comment_url":"https://api.github.com/repos/mobydq/mobydq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mobydq/mobydq/issues/207/comments","statuses_url":"https://api.github.com/repos/mobydq/mobydq/statuses/3c6ce007bd92e0bb5494fac6debd39c92f1f93b1","head":{"label":"matalie:db_functions","ref":"db_functions","sha":"3c6ce007bd92e0bb5494fac6debd39c92f1f93b1","user":{"login":"matalie","id":29657196,"node_id":"MDQ6VXNlcjI5NjU3MTk2","avatar_url":"https://avatars3.githubusercontent.com/u/29657196?v=4","gravatar_id":"","url":"https://api.github.com/users/matalie","html_url":"https://github.com/matalie","followers_url":"https://api.github.com/users/matalie/followers","following_url":"https://api.github.com/users/matalie/following{/other_user}","gists_url":"https://api.github.com/users/matalie/gists{/gist_id}","starred_url":"https://api.github.com/users/matalie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matalie/subscriptions","organizations_url":"https://api.github.com/users/matalie/orgs","repos_url":"https://api.github.com/users/matalie/repos","events_url":"https://api.github.com/users/matalie/events{/privacy}","received_events_url":"https://api.github.com/users/matalie/received_events","type":"User","site_admin":false},"repo":{"id":151351241,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzNTEyNDE=","name":"mobydq","full_name":"matalie/mobydq","private":false,"owner":{"login":"matalie","id":29657196,"node_id":"MDQ6VXNlcjI5NjU3MTk2","avatar_url":"https://avatars3.githubusercontent.com/u/29657196?v=4","gravatar_id":"","url":"https://api.github.com/users/matalie","html_url":"https://github.com/matalie","followers_url":"https://api.github.com/users/matalie/followers","following_url":"https://api.github.com/users/matalie/following{/other_user}","gists_url":"https://api.github.com/users/matalie/gists{/gist_id}","starred_url":"https://api.github.com/users/matalie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matalie/subscriptions","organizations_url":"https://api.github.com/users/matalie/orgs","repos_url":"https://api.github.com/users/matalie/repos","events_url":"https://api.github.com/users/matalie/events{/privacy}","received_events_url":"https://api.github.com/users/matalie/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matalie/mobydq","description":"Tool to automate data quality checks on data pipelines","fork":true,"url":"https://api.github.com/repos/matalie/mobydq","forks_url":"https://api.github.com/repos/matalie/mobydq/forks","keys_url":"https://api.github.com/repos/matalie/mobydq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matalie/mobydq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matalie/mobydq/teams","hooks_url":"https://api.github.com/repos/matalie/mobydq/hooks","issue_events_url":"https://api.github.com/repos/matalie/mobydq/issues/events{/number}","events_url":"https://api.github.com/repos/matalie/mobydq/events","assignees_url":"https://api.github.com/repos/matalie/mobydq/assignees{/user}","branches_url":"https://api.github.com/repos/matalie/mobydq/branches{/branch}","tags_url":"https://api.github.com/repos/matalie/mobydq/tags","blobs_url":"https://api.github.com/repos/matalie/mobydq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matalie/mobydq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matalie/mobydq/git/refs{/sha}","trees_url":"https://api.github.com/repos/matalie/mobydq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matalie/mobydq/statuses/{sha}","languages_url":"https://api.github.com/repos/matalie/mobydq/languages","stargazers_url":"https://api.github.com/repos/matalie/mobydq/stargazers","contributors_url":"https://api.github.com/repos/matalie/mobydq/contributors","subscribers_url":"https://api.github.com/repos/matalie/mobydq/subscribers","subscription_url":"https://api.github.com/repos/matalie/mobydq/subscription","commits_url":"https://api.github.com/repos/matalie/mobydq/commits{/sha}","git_commits_url":"https://api.github.com/repos/matalie/mobydq/git/commits{/sha}","comments_url":"https://api.github.com/repos/matalie/mobydq/comments{/number}","issue_comment_url":"https://api.github.com/repos/matalie/mobydq/issues/comments{/number}","contents_url":"https://api.github.com/repos/matalie/mobydq/contents/{+path}","compare_url":"https://api.github.com/repos/matalie/mobydq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matalie/mobydq/merges","archive_url":"https://api.github.com/repos/matalie/mobydq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matalie/mobydq/downloads","issues_url":"https://api.github.com/repos/matalie/mobydq/issues{/number}","pulls_url":"https://api.github.com/repos/matalie/mobydq/pulls{/number}","milestones_url":"https://api.github.com/repos/matalie/mobydq/milestones{/number}","notifications_url":"https://api.github.com/repos/matalie/mobydq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matalie/mobydq/labels{/name}","releases_url":"https://api.github.com/repos/matalie/mobydq/releases{/id}","deployments_url":"https://api.github.com/repos/matalie/mobydq/deployments","created_at":"2018-10-03T02:29:34Z","updated_at":"2018-10-05T05:24:57Z","pushed_at":"2018-10-18T11:03:40Z","git_url":"git://github.com/matalie/mobydq.git","ssh_url":"git@github.com:matalie/mobydq.git","clone_url":"https://github.com/matalie/mobydq.git","svn_url":"https://github.com/matalie/mobydq","homepage":"","size":38927,"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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mobydq:development","ref":"development","sha":"d1136ac2008f8953360156a64cb26b324fc65f53","user":{"login":"mobydq","id":43715948,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzE1OTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/43715948?v=4","gravatar_id":"","url":"https://api.github.com/users/mobydq","html_url":"https://github.com/mobydq","followers_url":"https://api.github.com/users/mobydq/followers","following_url":"https://api.github.com/users/mobydq/following{/other_user}","gists_url":"https://api.github.com/users/mobydq/gists{/gist_id}","starred_url":"https://api.github.com/users/mobydq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobydq/subscriptions","organizations_url":"https://api.github.com/users/mobydq/orgs","repos_url":"https://api.github.com/users/mobydq/repos","events_url":"https://api.github.com/users/mobydq/events{/privacy}","received_events_url":"https://api.github.com/users/mobydq/received_events","type":"Organization","site_admin":false},"repo":{"id":102476818,"node_id":"MDEwOlJlcG9zaXRvcnkxMDI0NzY4MTg=","name":"mobydq","full_name":"mobydq/mobydq","private":false,"owner":{"login":"mobydq","id":43715948,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzE1OTQ4","avatar_url":"https://avatars0.githubusercontent.com/u/43715948?v=4","gravatar_id":"","url":"https://api.github.com/users/mobydq","html_url":"https://github.com/mobydq","followers_url":"https://api.github.com/users/mobydq/followers","following_url":"https://api.github.com/users/mobydq/following{/other_user}","gists_url":"https://api.github.com/users/mobydq/gists{/gist_id}","starred_url":"https://api.github.com/users/mobydq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobydq/subscriptions","organizations_url":"https://api.github.com/users/mobydq/orgs","repos_url":"https://api.github.com/users/mobydq/repos","events_url":"https://api.github.com/users/mobydq/events{/privacy}","received_events_url":"https://api.github.com/users/mobydq/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mobydq/mobydq","description":":whale: Tool to automate data quality checks on data pipelines","fork":false,"url":"https://api.github.com/repos/mobydq/mobydq","forks_url":"https://api.github.com/repos/mobydq/mobydq/forks","keys_url":"https://api.github.com/repos/mobydq/mobydq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobydq/mobydq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobydq/mobydq/teams","hooks_url":"https://api.github.com/repos/mobydq/mobydq/hooks","issue_events_url":"https://api.github.com/repos/mobydq/mobydq/issues/events{/number}","events_url":"https://api.github.com/repos/mobydq/mobydq/events","assignees_url":"https://api.github.com/repos/mobydq/mobydq/assignees{/user}","branches_url":"https://api.github.com/repos/mobydq/mobydq/branches{/branch}","tags_url":"https://api.github.com/repos/mobydq/mobydq/tags","blobs_url":"https://api.github.com/repos/mobydq/mobydq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobydq/mobydq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobydq/mobydq/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobydq/mobydq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobydq/mobydq/statuses/{sha}","languages_url":"https://api.github.com/repos/mobydq/mobydq/languages","stargazers_url":"https://api.github.com/repos/mobydq/mobydq/stargazers","contributors_url":"https://api.github.com/repos/mobydq/mobydq/contributors","subscribers_url":"https://api.github.com/repos/mobydq/mobydq/subscribers","subscription_url":"https://api.github.com/repos/mobydq/mobydq/subscription","commits_url":"https://api.github.com/repos/mobydq/mobydq/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobydq/mobydq/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobydq/mobydq/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobydq/mobydq/issues/comments{/number}","contents_url":"https://api.github.com/repos/mobydq/mobydq/contents/{+path}","compare_url":"https://api.github.com/repos/mobydq/mobydq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobydq/mobydq/merges","archive_url":"https://api.github.com/repos/mobydq/mobydq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobydq/mobydq/downloads","issues_url":"https://api.github.com/repos/mobydq/mobydq/issues{/number}","pulls_url":"https://api.github.com/repos/mobydq/mobydq/pulls{/number}","milestones_url":"https://api.github.com/repos/mobydq/mobydq/milestones{/number}","notifications_url":"https://api.github.com/repos/mobydq/mobydq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobydq/mobydq/labels{/name}","releases_url":"https://api.github.com/repos/mobydq/mobydq/releases{/id}","deployments_url":"https://api.github.com/repos/mobydq/mobydq/deployments","created_at":"2017-09-05T12:11:21Z","updated_at":"2018-10-16T12:02:56Z","pushed_at":"2018-10-18T11:19:43Z","git_url":"git://github.com/mobydq/mobydq.git","ssh_url":"git@github.com:mobydq/mobydq.git","clone_url":"https://github.com/mobydq/mobydq.git","svn_url":"https://github.com/mobydq/mobydq","homepage":"https://mobydq.github.io","size":39022,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":33,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/207"},"html":{"href":"https://github.com/mobydq/mobydq/pull/207"},"issue":{"href":"https://api.github.com/repos/mobydq/mobydq/issues/207"},"comments":{"href":"https://api.github.com/repos/mobydq/mobydq/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mobydq/mobydq/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/mobydq/mobydq/statuses/3c6ce007bd92e0bb5494fac6debd39c92f1f93b1"}},"author_association":"NONE"}}
{"actor":{"display_login":"ThomasGassmann"}}