{"action":"created","comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/comments/193954622","pull_request_review_id":127034016,"id":193954622,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mzk1NDYyMg==","diff_hunk":"@@ -52,7 +52,7 @@ func (s *spaceServiceBlackBoxTest) TestCreateOK() {\n \n \t// If we try to create another space with the same ID it should fail\n \terr = s.Application.SpaceService().CreateSpace(s.Ctx, creator.Identity().ID, spaceID)\n-\ttest.AssertError(s.T(), err, &pq.Error{}, \"pq: duplicate key value violates unique constraint \\\"resource_pkey\\\"\")\n+\ttest.AssertError(s.T(), err, errors.DataConflictError{}, fmt.Sprintf(\"resource with ID %s already exists\", spaceID))","path":"authorization/space/service/space_service_blackbox_test.go","position":21,"original_position":21,"commit_id":"e0811e52f36b0e8ccc1aefcd60b29c43874e99e6","original_commit_id":"e0811e52f36b0e8ccc1aefcd60b29c43874e99e6","user":{"login":"alexeykazakov","id":620087,"node_id":"MDQ6VXNlcjYyMDA4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/620087?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeykazakov","html_url":"https://github.com/alexeykazakov","followers_url":"https://api.github.com/users/alexeykazakov/followers","following_url":"https://api.github.com/users/alexeykazakov/following{/other_user}","gists_url":"https://api.github.com/users/alexeykazakov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeykazakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeykazakov/subscriptions","organizations_url":"https://api.github.com/users/alexeykazakov/orgs","repos_url":"https://api.github.com/users/alexeykazakov/repos","events_url":"https://api.github.com/users/alexeykazakov/events{/privacy}","received_events_url":"https://api.github.com/users/alexeykazakov/received_events","type":"User","site_admin":false},"body":"Or just test.AssertError(s.T(), err, errors.DataConflictError{}, \"resource with ID %s already exists\", spaceID)","created_at":"2018-06-08T05:17:42Z","updated_at":"2018-06-08T05:18:30Z","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/515#discussion_r193954622","pull_request_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/comments/193954622"},"html":{"href":"https://github.com/fabric8-services/fabric8-auth/pull/515#discussion_r193954622"},"pull_request":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515"}}},"pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515","id":193508873,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNTA4ODcz","html_url":"https://github.com/fabric8-services/fabric8-auth/pull/515","diff_url":"https://github.com/fabric8-services/fabric8-auth/pull/515.diff","patch_url":"https://github.com/fabric8-services/fabric8-auth/pull/515.patch","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/515","number":515,"state":"open","locked":false,"title":"Support 409 error for creating a space with existing ID","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},"body":"Return 409 if a space is being created with an existing resource ID","created_at":"2018-06-08T04:56:25Z","updated_at":"2018-06-08T05:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cae2e3c0f7815213cafe05e26838a740ca1d5e43","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sbryzak","id":165507,"node_id":"MDQ6VXNlcjE2NTUwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/165507?v=4","gravatar_id":"","url":"https://api.github.com/users/sbryzak","html_url":"https://github.com/sbryzak","followers_url":"https://api.github.com/users/sbryzak/followers","following_url":"https://api.github.com/users/sbryzak/following{/other_user}","gists_url":"https://api.github.com/users/sbryzak/gists{/gist_id}","starred_url":"https://api.github.com/users/sbryzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbryzak/subscriptions","organizations_url":"https://api.github.com/users/sbryzak/orgs","repos_url":"https://api.github.com/users/sbryzak/repos","events_url":"https://api.github.com/users/sbryzak/events{/privacy}","received_events_url":"https://api.github.com/users/sbryzak/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515/commits","review_comments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515/comments","review_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/515/comments","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/statuses/e0811e52f36b0e8ccc1aefcd60b29c43874e99e6","head":{"label":"sbose78:enable-dataconflict","ref":"enable-dataconflict","sha":"e0811e52f36b0e8ccc1aefcd60b29c43874e99e6","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},"repo":{"id":122318411,"node_id":"MDEwOlJlcG9zaXRvcnkxMjIzMTg0MTE=","name":"fabric8-auth","full_name":"sbose78/fabric8-auth","owner":{"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},"private":false,"html_url":"https://github.com/sbose78/fabric8-auth","description":"Identity and Access Management for fabric8 services","fork":true,"url":"https://api.github.com/repos/sbose78/fabric8-auth","forks_url":"https://api.github.com/repos/sbose78/fabric8-auth/forks","keys_url":"https://api.github.com/repos/sbose78/fabric8-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbose78/fabric8-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbose78/fabric8-auth/teams","hooks_url":"https://api.github.com/repos/sbose78/fabric8-auth/hooks","issue_events_url":"https://api.github.com/repos/sbose78/fabric8-auth/issues/events{/number}","events_url":"https://api.github.com/repos/sbose78/fabric8-auth/events","assignees_url":"https://api.github.com/repos/sbose78/fabric8-auth/assignees{/user}","branches_url":"https://api.github.com/repos/sbose78/fabric8-auth/branches{/branch}","tags_url":"https://api.github.com/repos/sbose78/fabric8-auth/tags","blobs_url":"https://api.github.com/repos/sbose78/fabric8-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbose78/fabric8-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbose78/fabric8-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbose78/fabric8-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbose78/fabric8-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/sbose78/fabric8-auth/languages","stargazers_url":"https://api.github.com/repos/sbose78/fabric8-auth/stargazers","contributors_url":"https://api.github.com/repos/sbose78/fabric8-auth/contributors","subscribers_url":"https://api.github.com/repos/sbose78/fabric8-auth/subscribers","subscription_url":"https://api.github.com/repos/sbose78/fabric8-auth/subscription","commits_url":"https://api.github.com/repos/sbose78/fabric8-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbose78/fabric8-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbose78/fabric8-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbose78/fabric8-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbose78/fabric8-auth/contents/{+path}","compare_url":"https://api.github.com/repos/sbose78/fabric8-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbose78/fabric8-auth/merges","archive_url":"https://api.github.com/repos/sbose78/fabric8-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbose78/fabric8-auth/downloads","issues_url":"https://api.github.com/repos/sbose78/fabric8-auth/issues{/number}","pulls_url":"https://api.github.com/repos/sbose78/fabric8-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/sbose78/fabric8-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/sbose78/fabric8-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbose78/fabric8-auth/labels{/name}","releases_url":"https://api.github.com/repos/sbose78/fabric8-auth/releases{/id}","deployments_url":"https://api.github.com/repos/sbose78/fabric8-auth/deployments","created_at":"2018-02-21T09:51:46Z","updated_at":"2018-02-21T09:51:48Z","pushed_at":"2018-06-08T04:54:36Z","git_url":"git://github.com/sbose78/fabric8-auth.git","ssh_url":"git@github.com:sbose78/fabric8-auth.git","clone_url":"https://github.com/sbose78/fabric8-auth.git","svn_url":"https://github.com/sbose78/fabric8-auth","homepage":"","size":6816,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"fabric8-services:master","ref":"master","sha":"d621648a5f4b84469576d30faa6579657a125df8","user":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"repo":{"id":96831576,"node_id":"MDEwOlJlcG9zaXRvcnk5NjgzMTU3Ng==","name":"fabric8-auth","full_name":"fabric8-services/fabric8-auth","owner":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fabric8-services/fabric8-auth","description":"Identity and Access Management for fabric8 services","fork":false,"url":"https://api.github.com/repos/fabric8-services/fabric8-auth","forks_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/forks","keys_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/teams","hooks_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/hooks","issue_events_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/events{/number}","events_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/events","assignees_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/assignees{/user}","branches_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/branches{/branch}","tags_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/tags","blobs_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/languages","stargazers_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/stargazers","contributors_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/contributors","subscribers_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/subscribers","subscription_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/subscription","commits_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/contents/{+path}","compare_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/merges","archive_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/downloads","issues_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues{/number}","pulls_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/labels{/name}","releases_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/releases{/id}","deployments_url":"https://api.github.com/repos/fabric8-services/fabric8-auth/deployments","created_at":"2017-07-10T23:57:55Z","updated_at":"2018-06-06T18:29:04Z","pushed_at":"2018-06-08T04:56:26Z","git_url":"git://github.com/fabric8-services/fabric8-auth.git","ssh_url":"git@github.com:fabric8-services/fabric8-auth.git","clone_url":"https://github.com/fabric8-services/fabric8-auth.git","svn_url":"https://github.com/fabric8-services/fabric8-auth","homepage":"https://auth.openshift.io/api/status","size":6610,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":55,"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":22,"open_issues":55,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515"},"html":{"href":"https://github.com/fabric8-services/fabric8-auth/pull/515"},"issue":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/515"},"comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/issues/515/comments"},"review_comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515/comments"},"review_comment":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/pulls/515/commits"},"statuses":{"href":"https://api.github.com/repos/fabric8-services/fabric8-auth/statuses/e0811e52f36b0e8ccc1aefcd60b29c43874e99e6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alexeykazakov"}}