{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9","id":83800807,"html_url":"https://github.com/AmadeusITGroup/Cerberus/pull/9","diff_url":"https://github.com/AmadeusITGroup/Cerberus/pull/9.diff","patch_url":"https://github.com/AmadeusITGroup/Cerberus/pull/9.patch","issue_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/9","number":9,"state":"open","locked":false,"title":"Add API endpoints to retrieve all groups of a user recursively","user":{"login":"gchazot","id":8948373,"avatar_url":"https://avatars.githubusercontent.com/u/8948373?v=3","gravatar_id":"","url":"https://api.github.com/users/gchazot","html_url":"https://github.com/gchazot","followers_url":"https://api.github.com/users/gchazot/followers","following_url":"https://api.github.com/users/gchazot/following{/other_user}","gists_url":"https://api.github.com/users/gchazot/gists{/gist_id}","starred_url":"https://api.github.com/users/gchazot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchazot/subscriptions","organizations_url":"https://api.github.com/users/gchazot/orgs","repos_url":"https://api.github.com/users/gchazot/repos","events_url":"https://api.github.com/users/gchazot/events{/privacy}","received_events_url":"https://api.github.com/users/gchazot/received_events","type":"User","site_admin":false},"body":"This is adding 2 new API endpoints to retrieve recursively all the groups of a user.\r\nThe logic for the recursive retrieval is optimised to make a single request to the LDAP server per level of group nesting.\r\n\r\nThe performance is not great though: ~1500ms in my tests vs ~50ms for a simple user_all_infos. This is why I chose to implement it as separate APIs rather than improving the existing groups APIs.","created_at":"2016-09-02T13:23:54Z","updated_at":"2016-09-02T13:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9/commits","review_comments_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9/comments","review_comment_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/9/comments","statuses_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/statuses/49c6146cecb782b2e23476b9c091748de85ab626","head":{"label":"gchazot:new_user_groups_api","ref":"new_user_groups_api","sha":"49c6146cecb782b2e23476b9c091748de85ab626","user":{"login":"gchazot","id":8948373,"avatar_url":"https://avatars.githubusercontent.com/u/8948373?v=3","gravatar_id":"","url":"https://api.github.com/users/gchazot","html_url":"https://github.com/gchazot","followers_url":"https://api.github.com/users/gchazot/followers","following_url":"https://api.github.com/users/gchazot/following{/other_user}","gists_url":"https://api.github.com/users/gchazot/gists{/gist_id}","starred_url":"https://api.github.com/users/gchazot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchazot/subscriptions","organizations_url":"https://api.github.com/users/gchazot/orgs","repos_url":"https://api.github.com/users/gchazot/repos","events_url":"https://api.github.com/users/gchazot/events{/privacy}","received_events_url":"https://api.github.com/users/gchazot/received_events","type":"User","site_admin":false},"repo":{"id":67221949,"name":"Cerberus","full_name":"gchazot/Cerberus","owner":{"login":"gchazot","id":8948373,"avatar_url":"https://avatars.githubusercontent.com/u/8948373?v=3","gravatar_id":"","url":"https://api.github.com/users/gchazot","html_url":"https://github.com/gchazot","followers_url":"https://api.github.com/users/gchazot/followers","following_url":"https://api.github.com/users/gchazot/following{/other_user}","gists_url":"https://api.github.com/users/gchazot/gists{/gist_id}","starred_url":"https://api.github.com/users/gchazot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchazot/subscriptions","organizations_url":"https://api.github.com/users/gchazot/orgs","repos_url":"https://api.github.com/users/gchazot/repos","events_url":"https://api.github.com/users/gchazot/events{/privacy}","received_events_url":"https://api.github.com/users/gchazot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gchazot/Cerberus","description":"Cerberus is an authentication server for internal web application","fork":true,"url":"https://api.github.com/repos/gchazot/Cerberus","forks_url":"https://api.github.com/repos/gchazot/Cerberus/forks","keys_url":"https://api.github.com/repos/gchazot/Cerberus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gchazot/Cerberus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gchazot/Cerberus/teams","hooks_url":"https://api.github.com/repos/gchazot/Cerberus/hooks","issue_events_url":"https://api.github.com/repos/gchazot/Cerberus/issues/events{/number}","events_url":"https://api.github.com/repos/gchazot/Cerberus/events","assignees_url":"https://api.github.com/repos/gchazot/Cerberus/assignees{/user}","branches_url":"https://api.github.com/repos/gchazot/Cerberus/branches{/branch}","tags_url":"https://api.github.com/repos/gchazot/Cerberus/tags","blobs_url":"https://api.github.com/repos/gchazot/Cerberus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gchazot/Cerberus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gchazot/Cerberus/git/refs{/sha}","trees_url":"https://api.github.com/repos/gchazot/Cerberus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gchazot/Cerberus/statuses/{sha}","languages_url":"https://api.github.com/repos/gchazot/Cerberus/languages","stargazers_url":"https://api.github.com/repos/gchazot/Cerberus/stargazers","contributors_url":"https://api.github.com/repos/gchazot/Cerberus/contributors","subscribers_url":"https://api.github.com/repos/gchazot/Cerberus/subscribers","subscription_url":"https://api.github.com/repos/gchazot/Cerberus/subscription","commits_url":"https://api.github.com/repos/gchazot/Cerberus/commits{/sha}","git_commits_url":"https://api.github.com/repos/gchazot/Cerberus/git/commits{/sha}","comments_url":"https://api.github.com/repos/gchazot/Cerberus/comments{/number}","issue_comment_url":"https://api.github.com/repos/gchazot/Cerberus/issues/comments{/number}","contents_url":"https://api.github.com/repos/gchazot/Cerberus/contents/{+path}","compare_url":"https://api.github.com/repos/gchazot/Cerberus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gchazot/Cerberus/merges","archive_url":"https://api.github.com/repos/gchazot/Cerberus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gchazot/Cerberus/downloads","issues_url":"https://api.github.com/repos/gchazot/Cerberus/issues{/number}","pulls_url":"https://api.github.com/repos/gchazot/Cerberus/pulls{/number}","milestones_url":"https://api.github.com/repos/gchazot/Cerberus/milestones{/number}","notifications_url":"https://api.github.com/repos/gchazot/Cerberus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gchazot/Cerberus/labels{/name}","releases_url":"https://api.github.com/repos/gchazot/Cerberus/releases{/id}","deployments_url":"https://api.github.com/repos/gchazot/Cerberus/deployments","created_at":"2016-09-02T12:46:47Z","updated_at":"2016-09-02T12:46:49Z","pushed_at":"2016-09-02T13:12:02Z","git_url":"git://github.com/gchazot/Cerberus.git","ssh_url":"git@github.com:gchazot/Cerberus.git","clone_url":"https://github.com/gchazot/Cerberus.git","svn_url":"https://github.com/gchazot/Cerberus","homepage":"https://amadeusitgroup.github.io/Cerberus/","size":270,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AmadeusITGroup:master","ref":"master","sha":"c05c13fb350250043d57bc842c98b4518acaa9b3","user":{"login":"AmadeusITGroup","id":6802338,"avatar_url":"https://avatars.githubusercontent.com/u/6802338?v=3","gravatar_id":"","url":"https://api.github.com/users/AmadeusITGroup","html_url":"https://github.com/AmadeusITGroup","followers_url":"https://api.github.com/users/AmadeusITGroup/followers","following_url":"https://api.github.com/users/AmadeusITGroup/following{/other_user}","gists_url":"https://api.github.com/users/AmadeusITGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/AmadeusITGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmadeusITGroup/subscriptions","organizations_url":"https://api.github.com/users/AmadeusITGroup/orgs","repos_url":"https://api.github.com/users/AmadeusITGroup/repos","events_url":"https://api.github.com/users/AmadeusITGroup/events{/privacy}","received_events_url":"https://api.github.com/users/AmadeusITGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":35020366,"name":"Cerberus","full_name":"AmadeusITGroup/Cerberus","owner":{"login":"AmadeusITGroup","id":6802338,"avatar_url":"https://avatars.githubusercontent.com/u/6802338?v=3","gravatar_id":"","url":"https://api.github.com/users/AmadeusITGroup","html_url":"https://github.com/AmadeusITGroup","followers_url":"https://api.github.com/users/AmadeusITGroup/followers","following_url":"https://api.github.com/users/AmadeusITGroup/following{/other_user}","gists_url":"https://api.github.com/users/AmadeusITGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/AmadeusITGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmadeusITGroup/subscriptions","organizations_url":"https://api.github.com/users/AmadeusITGroup/orgs","repos_url":"https://api.github.com/users/AmadeusITGroup/repos","events_url":"https://api.github.com/users/AmadeusITGroup/events{/privacy}","received_events_url":"https://api.github.com/users/AmadeusITGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmadeusITGroup/Cerberus","description":"Cerberus is an authentication server for internal web application","fork":false,"url":"https://api.github.com/repos/AmadeusITGroup/Cerberus","forks_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/forks","keys_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/teams","hooks_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/hooks","issue_events_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/events{/number}","events_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/events","assignees_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/assignees{/user}","branches_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/branches{/branch}","tags_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/tags","blobs_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/statuses/{sha}","languages_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/languages","stargazers_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/stargazers","contributors_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/contributors","subscribers_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/subscribers","subscription_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/subscription","commits_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/contents/{+path}","compare_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/merges","archive_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/downloads","issues_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues{/number}","pulls_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls{/number}","milestones_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/milestones{/number}","notifications_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/labels{/name}","releases_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/releases{/id}","deployments_url":"https://api.github.com/repos/AmadeusITGroup/Cerberus/deployments","created_at":"2015-05-04T07:23:44Z","updated_at":"2016-07-24T23:18:02Z","pushed_at":"2016-05-10T09:31:07Z","git_url":"git://github.com/AmadeusITGroup/Cerberus.git","ssh_url":"git@github.com:AmadeusITGroup/Cerberus.git","clone_url":"https://github.com/AmadeusITGroup/Cerberus.git","svn_url":"https://github.com/AmadeusITGroup/Cerberus","homepage":"https://amadeusitgroup.github.io/Cerberus/","size":270,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9"},"html":{"href":"https://github.com/AmadeusITGroup/Cerberus/pull/9"},"issue":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/9"},"comments":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/AmadeusITGroup/Cerberus/statuses/49c6146cecb782b2e23476b9c091748de85ab626"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2524,"deletions":2305,"changed_files":12}}
{"actor":{"display_login":"gchazot"}}