{"action":"created","issue":{"url":"https://api.github.com/repos/spinnaker/fiat/issues/100","repository_url":"https://api.github.com/repos/spinnaker/fiat","labels_url":"https://api.github.com/repos/spinnaker/fiat/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/spinnaker/fiat/issues/100/comments","events_url":"https://api.github.com/repos/spinnaker/fiat/issues/100/events","html_url":"https://github.com/spinnaker/fiat/issues/100","id":182209587,"number":100,"title":"GitHub UserRolesProvider : optimize user's teams fetch","user":{"login":"gbougeard","id":728814,"avatar_url":"https://avatars0.githubusercontent.com/u/728814?v=3","gravatar_id":"","url":"https://api.github.com/users/gbougeard","html_url":"https://github.com/gbougeard","followers_url":"https://api.github.com/users/gbougeard/followers","following_url":"https://api.github.com/users/gbougeard/following{/other_user}","gists_url":"https://api.github.com/users/gbougeard/gists{/gist_id}","starred_url":"https://api.github.com/users/gbougeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbougeard/subscriptions","organizations_url":"https://api.github.com/users/gbougeard/orgs","repos_url":"https://api.github.com/users/gbougeard/repos","events_url":"https://api.github.com/users/gbougeard/events{/privacy}","received_events_url":"https://api.github.com/users/gbougeard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T08:55:31Z","updated_at":"2017-05-22T10:22:38Z","closed_at":null,"body":"Currently the GitHub UserRolesProvider do 1 call per existing team (for an organziation) to check membership of the logged in user.\r\nThe new GitHub API based on GraphQL should provide a way to get all teams a user belongs to in only one call to the GitHub API. \r\n"},"comment":{"url":"https://api.github.com/repos/spinnaker/fiat/issues/comments/303060612","html_url":"https://github.com/spinnaker/fiat/issues/100#issuecomment-303060612","issue_url":"https://api.github.com/repos/spinnaker/fiat/issues/100","id":303060612,"user":{"login":"gbougeard","id":728814,"avatar_url":"https://avatars0.githubusercontent.com/u/728814?v=3","gravatar_id":"","url":"https://api.github.com/users/gbougeard","html_url":"https://github.com/gbougeard","followers_url":"https://api.github.com/users/gbougeard/followers","following_url":"https://api.github.com/users/gbougeard/following{/other_user}","gists_url":"https://api.github.com/users/gbougeard/gists{/gist_id}","starred_url":"https://api.github.com/users/gbougeard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbougeard/subscriptions","organizations_url":"https://api.github.com/users/gbougeard/orgs","repos_url":"https://api.github.com/users/gbougeard/repos","events_url":"https://api.github.com/users/gbougeard/events{/privacy}","received_events_url":"https://api.github.com/users/gbougeard/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T10:22:38Z","updated_at":"2017-05-22T10:22:38Z","body":"Looks like it's finally doable through the grafQL with this kind of request : \r\n\r\n```{\r\n  viewer {\r\n    login\r\n    organizations(first: 3) {\r\n      edges {\r\n        org: node {\r\n              name\r\n          \r\n          login\r\n          teams(first : 50, userLogins:[\"gbougeard\"]) {\r\n             totalCount\r\n            edges {\r\n             \r\n              node {\r\n                name\r\n                slug\r\n                \r\n              }\r\n             \r\n            }\r\n          } \r\n        }\r\n      }\r\n    }\r\n  }\r\n}```"}}
{"actor":{"display_login":"gbougeard"}}