{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/347","repository_url":"https://api.github.com/repos/fabric8-services/fabric8-auth","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/347/comments","events_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/347/events","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/347","id":299625076,"number":347,"title":"List roles by resource_type","user":{"login":"sbose78","id":545280,"avatar_url":"https://avatars3.githubusercontent.com/u/545280?v=4","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2018-02-23T07:45:27Z","updated_at":"2018-03-22T05:26:22Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/347","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/347","diff_url":"https://github.com/fabric8-services/fabric8-auth/pull/347.diff","patch_url":"https://github.com/fabric8-services/fabric8-auth/pull/347.patch"},"body":"fixes #288 \r\n\r\nThis PR implements the \r\n```\r\nGET /api/roles?resource_type=NAME_OF_RESOURCE_TYPE\r\n\r\nHTTP/1.1 200 OK\r\nContent-Type: application/json\r\n...\r\n\"data\": [\r\n  {\r\n    \"name\": \"collaborator\",\r\n    \"resource_type\": \"openshift.io/resource/area\",\r\n    \"scopes\": [\r\n      \"manage\",\r\n      \"view\"\r\n    ]\r\n  },\r\n  {\r\n    \"name\": \"administrator\",\r\n    \"resource_type\": \"openshift.io/resource/area\",\r\n    \"scopes\": [\r\n      \"admin\"\r\n    ]\r\n  }\r\n]\r\n```\r\n\r\nSupport for `GET /api/roles` will be added in a different PR.\r\n\r\n- [x] Repository for Role/Scope associations in role_scope table\r\n- [x] Repository tests\r\n- [x] Model RoleManagementModel\r\n- [x] Model tests\r\n- [x] Service RoleManagementService\r\n- [x] Service tests\r\n- [x] Controller\r\n- [x] Controller tests\r\n- [x] Migrations / add indexes to columns\r\n- [x] Migration tests"},"comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/comments/375184252","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/347#issuecomment-375184252","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/347","id":375184252,"user":{"login":"fabric8cd","id":26630553,"avatar_url":"https://avatars2.githubusercontent.com/u/26630553?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8cd","html_url":"https://github.com/fabric8cd","followers_url":"https://api.github.com/users/fabric8cd/followers","following_url":"https://api.github.com/users/fabric8cd/following{/other_user}","gists_url":"https://api.github.com/users/fabric8cd/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8cd/subscriptions","organizations_url":"https://api.github.com/users/fabric8cd/orgs","repos_url":"https://api.github.com/users/fabric8cd/repos","events_url":"https://api.github.com/users/fabric8cd/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8cd/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T05:26:22Z","updated_at":"2018-03-22T05:26:22Z","author_association":"NONE","body":"@sbose78 snapshot fabric8-auth image is available for testing.  `docker pull docker.io/fabric8/fabric8-auth:SNAPSHOT-PR-347-24`"}}
{"actor":{"display_login":"fabric8cd"}}