{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/694","repository_url":"https://api.github.com/repos/fabric8-services/fabric8-auth","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/694/labels{/name}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/694/comments","events_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/694/events","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/694","id":369148877,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTU5OTk4","number":694,"title":"Support to add inital admin in Register Resource API","user":{"login":"sbose78","id":545280,"node_id":"MDQ6VXNlcjU0NTI4MA==","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":5,"created_at":"2018-10-11T14:28:26Z","updated_at":"2018-10-12T16:33:01Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/694","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/694","diff_url":"https://github.com/fabric8-services/fabric8-auth/pull/694.diff","patch_url":"https://github.com/fabric8-services/fabric8-auth/pull/694.patch"},"body":"\"Let's add a new nullable column to the RESOURCE_TYPE table, called DEFAULT_ROLE_ID, with a foreign key constraint to the ROLE.ROLE_ID column. Then, when registering a new resource, the resource service will look for a value in this column, and if found, assign the specified role to the creating user for the new resource. This change also requires that we pass in the current user's IDENTITY_ID value as a parameter to the resource_service.Register() function.\"\r\n\r\nfixes #693 "},"comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/comments/429385046","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/694#issuecomment-429385046","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/694","id":429385046,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTM4NTA0Ng==","user":{"login":"fabric8cd","id":26630553,"node_id":"MDQ6VXNlcjI2NjMwNTUz","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-10-12T16:33:01Z","updated_at":"2018-10-12T16:33:01Z","author_association":"NONE","body":"@sbose78 snapshot fabric8-auth image is available for testing.  `docker pull docker.io/fabric8/fabric8-auth:SNAPSHOT-PR-694-5`"}}
{"actor":{"display_login":"fabric8cd"}}