{"action":"created","comment":{"url":"https://api.github.com/repos/almighty/almighty-core/pulls/comments/102702218","pull_request_review_id":23464521,"id":102702218,"diff_hunk":"@@ -0,0 +1,2 @@\n+-- Refactor Identities: add a foreign key constraint\n+alter table identities add constraint identies_user_id_users_id_foreign foreign key (user_id) REFERENCES users (id);","path":"migration/sql-files/029-identities-foreign-key.sql","position":null,"original_position":2,"commit_id":"ad9c47765bbb6f1b47994ed58756848c2911bc2d","original_commit_id":"c2ed4d1afffb6f4f4f2befe94c2f2a9aa860db95","user":{"login":"aslakknutsen","id":132158,"avatar_url":"https://avatars.githubusercontent.com/u/132158?v=3","gravatar_id":"","url":"https://api.github.com/users/aslakknutsen","html_url":"https://github.com/aslakknutsen","followers_url":"https://api.github.com/users/aslakknutsen/followers","following_url":"https://api.github.com/users/aslakknutsen/following{/other_user}","gists_url":"https://api.github.com/users/aslakknutsen/gists{/gist_id}","starred_url":"https://api.github.com/users/aslakknutsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslakknutsen/subscriptions","organizations_url":"https://api.github.com/users/aslakknutsen/orgs","repos_url":"https://api.github.com/users/aslakknutsen/repos","events_url":"https://api.github.com/users/aslakknutsen/events{/privacy}","received_events_url":"https://api.github.com/users/aslakknutsen/received_events","type":"User","site_admin":false},"body":"A reason for not having foreign keys is that these 'things' might not exist in the same database in the future. But it's fine for now.","created_at":"2017-02-23T12:29:17Z","updated_at":"2017-02-23T12:29:17Z","html_url":"https://github.com/almighty/almighty-core/pull/860#discussion_r102702218","pull_request_url":"https://api.github.com/repos/almighty/almighty-core/pulls/860","_links":{"self":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/comments/102702218"},"html":{"href":"https://github.com/almighty/almighty-core/pull/860#discussion_r102702218"},"pull_request":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/860"}}},"pull_request":{"url":"https://api.github.com/repos/almighty/almighty-core/pulls/860","id":107588951,"html_url":"https://github.com/almighty/almighty-core/pull/860","diff_url":"https://github.com/almighty/almighty-core/pull/860.diff","patch_url":"https://github.com/almighty/almighty-core/pull/860.patch","issue_url":"https://api.github.com/repos/almighty/almighty-core/issues/860","number":860,"state":"open","locked":false,"title":"Add a foreign key constraint between table `identities` and table `users` (#859)","user":{"login":"xcoulon","id":178502,"avatar_url":"https://avatars.githubusercontent.com/u/178502?v=3","gravatar_id":"","url":"https://api.github.com/users/xcoulon","html_url":"https://github.com/xcoulon","followers_url":"https://api.github.com/users/xcoulon/followers","following_url":"https://api.github.com/users/xcoulon/following{/other_user}","gists_url":"https://api.github.com/users/xcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/xcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcoulon/subscriptions","organizations_url":"https://api.github.com/users/xcoulon/orgs","repos_url":"https://api.github.com/users/xcoulon/repos","events_url":"https://api.github.com/users/xcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/xcoulon/received_events","type":"User","site_admin":false},"body":"Also renamed `migration/sql-files/028-identity_provider_url.sql` into\r\n `migration/sql-files/028-identity-provider_url.sql` for consistency\r\n between underscores vs hyphens ;-)\r\n\r\nFixes #859 \r\n\r\nSigned-off-by: Xavier Coulon <xcoulon@redhat.com>\r\n\r\n","created_at":"2017-02-23T09:51:21Z","updated_at":"2017-02-23T12:29:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"878383420ecd2345deab9a4fadd0db6d18170e3e","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/almighty/almighty-core/milestones/13","html_url":"https://github.com/almighty/almighty-core/milestone/13","labels_url":"https://api.github.com/repos/almighty/almighty-core/milestones/13/labels","id":2335877,"number":13,"title":"Sprint #128","description":"","creator":{"login":"joshuawilson","id":1184371,"avatar_url":"https://avatars.githubusercontent.com/u/1184371?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuawilson","html_url":"https://github.com/joshuawilson","followers_url":"https://api.github.com/users/joshuawilson/followers","following_url":"https://api.github.com/users/joshuawilson/following{/other_user}","gists_url":"https://api.github.com/users/joshuawilson/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuawilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuawilson/subscriptions","organizations_url":"https://api.github.com/users/joshuawilson/orgs","repos_url":"https://api.github.com/users/joshuawilson/repos","events_url":"https://api.github.com/users/joshuawilson/events{/privacy}","received_events_url":"https://api.github.com/users/joshuawilson/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":3,"state":"open","created_at":"2017-02-20T21:06:17Z","updated_at":"2017-02-23T10:13:02Z","due_on":"2017-03-14T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/almighty/almighty-core/pulls/860/commits","review_comments_url":"https://api.github.com/repos/almighty/almighty-core/pulls/860/comments","review_comment_url":"https://api.github.com/repos/almighty/almighty-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/almighty/almighty-core/issues/860/comments","statuses_url":"https://api.github.com/repos/almighty/almighty-core/statuses/ad9c47765bbb6f1b47994ed58756848c2911bc2d","head":{"label":"xcoulon:Issue859_foreign_key","ref":"Issue859_foreign_key","sha":"ad9c47765bbb6f1b47994ed58756848c2911bc2d","user":{"login":"xcoulon","id":178502,"avatar_url":"https://avatars.githubusercontent.com/u/178502?v=3","gravatar_id":"","url":"https://api.github.com/users/xcoulon","html_url":"https://github.com/xcoulon","followers_url":"https://api.github.com/users/xcoulon/followers","following_url":"https://api.github.com/users/xcoulon/following{/other_user}","gists_url":"https://api.github.com/users/xcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/xcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcoulon/subscriptions","organizations_url":"https://api.github.com/users/xcoulon/orgs","repos_url":"https://api.github.com/users/xcoulon/repos","events_url":"https://api.github.com/users/xcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/xcoulon/received_events","type":"User","site_admin":false},"repo":{"id":76662337,"name":"almighty-core","full_name":"xcoulon/almighty-core","owner":{"login":"xcoulon","id":178502,"avatar_url":"https://avatars.githubusercontent.com/u/178502?v=3","gravatar_id":"","url":"https://api.github.com/users/xcoulon","html_url":"https://github.com/xcoulon","followers_url":"https://api.github.com/users/xcoulon/followers","following_url":"https://api.github.com/users/xcoulon/following{/other_user}","gists_url":"https://api.github.com/users/xcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/xcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcoulon/subscriptions","organizations_url":"https://api.github.com/users/xcoulon/orgs","repos_url":"https://api.github.com/users/xcoulon/repos","events_url":"https://api.github.com/users/xcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/xcoulon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xcoulon/almighty-core","description":null,"fork":true,"url":"https://api.github.com/repos/xcoulon/almighty-core","forks_url":"https://api.github.com/repos/xcoulon/almighty-core/forks","keys_url":"https://api.github.com/repos/xcoulon/almighty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xcoulon/almighty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xcoulon/almighty-core/teams","hooks_url":"https://api.github.com/repos/xcoulon/almighty-core/hooks","issue_events_url":"https://api.github.com/repos/xcoulon/almighty-core/issues/events{/number}","events_url":"https://api.github.com/repos/xcoulon/almighty-core/events","assignees_url":"https://api.github.com/repos/xcoulon/almighty-core/assignees{/user}","branches_url":"https://api.github.com/repos/xcoulon/almighty-core/branches{/branch}","tags_url":"https://api.github.com/repos/xcoulon/almighty-core/tags","blobs_url":"https://api.github.com/repos/xcoulon/almighty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xcoulon/almighty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xcoulon/almighty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/xcoulon/almighty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xcoulon/almighty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/xcoulon/almighty-core/languages","stargazers_url":"https://api.github.com/repos/xcoulon/almighty-core/stargazers","contributors_url":"https://api.github.com/repos/xcoulon/almighty-core/contributors","subscribers_url":"https://api.github.com/repos/xcoulon/almighty-core/subscribers","subscription_url":"https://api.github.com/repos/xcoulon/almighty-core/subscription","commits_url":"https://api.github.com/repos/xcoulon/almighty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/xcoulon/almighty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/xcoulon/almighty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/xcoulon/almighty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/xcoulon/almighty-core/contents/{+path}","compare_url":"https://api.github.com/repos/xcoulon/almighty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xcoulon/almighty-core/merges","archive_url":"https://api.github.com/repos/xcoulon/almighty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xcoulon/almighty-core/downloads","issues_url":"https://api.github.com/repos/xcoulon/almighty-core/issues{/number}","pulls_url":"https://api.github.com/repos/xcoulon/almighty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/xcoulon/almighty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/xcoulon/almighty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xcoulon/almighty-core/labels{/name}","releases_url":"https://api.github.com/repos/xcoulon/almighty-core/releases{/id}","deployments_url":"https://api.github.com/repos/xcoulon/almighty-core/deployments","created_at":"2016-12-16T15:03:53Z","updated_at":"2016-12-16T15:03:54Z","pushed_at":"2017-02-23T10:23:24Z","git_url":"git://github.com/xcoulon/almighty-core.git","ssh_url":"git@github.com:xcoulon/almighty-core.git","clone_url":"https://github.com/xcoulon/almighty-core.git","svn_url":"https://github.com/xcoulon/almighty-core","homepage":"http://devdoc.almighty.io/","size":1756,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"almighty:master","ref":"master","sha":"139fef6ba743de59efb35ad2adf45174a30cae88","user":{"login":"almighty","id":17783151,"avatar_url":"https://avatars.githubusercontent.com/u/17783151?v=3","gravatar_id":"","url":"https://api.github.com/users/almighty","html_url":"https://github.com/almighty","followers_url":"https://api.github.com/users/almighty/followers","following_url":"https://api.github.com/users/almighty/following{/other_user}","gists_url":"https://api.github.com/users/almighty/gists{/gist_id}","starred_url":"https://api.github.com/users/almighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almighty/subscriptions","organizations_url":"https://api.github.com/users/almighty/orgs","repos_url":"https://api.github.com/users/almighty/repos","events_url":"https://api.github.com/users/almighty/events{/privacy}","received_events_url":"https://api.github.com/users/almighty/received_events","type":"Organization","site_admin":false},"repo":{"id":54260706,"name":"almighty-core","full_name":"almighty/almighty-core","owner":{"login":"almighty","id":17783151,"avatar_url":"https://avatars.githubusercontent.com/u/17783151?v=3","gravatar_id":"","url":"https://api.github.com/users/almighty","html_url":"https://github.com/almighty","followers_url":"https://api.github.com/users/almighty/followers","following_url":"https://api.github.com/users/almighty/following{/other_user}","gists_url":"https://api.github.com/users/almighty/gists{/gist_id}","starred_url":"https://api.github.com/users/almighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almighty/subscriptions","organizations_url":"https://api.github.com/users/almighty/orgs","repos_url":"https://api.github.com/users/almighty/repos","events_url":"https://api.github.com/users/almighty/events{/privacy}","received_events_url":"https://api.github.com/users/almighty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/almighty/almighty-core","description":null,"fork":false,"url":"https://api.github.com/repos/almighty/almighty-core","forks_url":"https://api.github.com/repos/almighty/almighty-core/forks","keys_url":"https://api.github.com/repos/almighty/almighty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/almighty/almighty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/almighty/almighty-core/teams","hooks_url":"https://api.github.com/repos/almighty/almighty-core/hooks","issue_events_url":"https://api.github.com/repos/almighty/almighty-core/issues/events{/number}","events_url":"https://api.github.com/repos/almighty/almighty-core/events","assignees_url":"https://api.github.com/repos/almighty/almighty-core/assignees{/user}","branches_url":"https://api.github.com/repos/almighty/almighty-core/branches{/branch}","tags_url":"https://api.github.com/repos/almighty/almighty-core/tags","blobs_url":"https://api.github.com/repos/almighty/almighty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/almighty/almighty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/almighty/almighty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/almighty/almighty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/almighty/almighty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/almighty/almighty-core/languages","stargazers_url":"https://api.github.com/repos/almighty/almighty-core/stargazers","contributors_url":"https://api.github.com/repos/almighty/almighty-core/contributors","subscribers_url":"https://api.github.com/repos/almighty/almighty-core/subscribers","subscription_url":"https://api.github.com/repos/almighty/almighty-core/subscription","commits_url":"https://api.github.com/repos/almighty/almighty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/almighty/almighty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/almighty/almighty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/almighty/almighty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/almighty/almighty-core/contents/{+path}","compare_url":"https://api.github.com/repos/almighty/almighty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/almighty/almighty-core/merges","archive_url":"https://api.github.com/repos/almighty/almighty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/almighty/almighty-core/downloads","issues_url":"https://api.github.com/repos/almighty/almighty-core/issues{/number}","pulls_url":"https://api.github.com/repos/almighty/almighty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/almighty/almighty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/almighty/almighty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/almighty/almighty-core/labels{/name}","releases_url":"https://api.github.com/repos/almighty/almighty-core/releases{/id}","deployments_url":"https://api.github.com/repos/almighty/almighty-core/deployments","created_at":"2016-03-19T10:42:15Z","updated_at":"2017-02-21T15:34:08Z","pushed_at":"2017-02-23T12:13:06Z","git_url":"git://github.com/almighty/almighty-core.git","ssh_url":"git@github.com:almighty/almighty-core.git","clone_url":"https://github.com/almighty/almighty-core.git","svn_url":"https://github.com/almighty/almighty-core","homepage":"http://devdoc.almighty.io/","size":5876,"stargazers_count":20,"watchers_count":20,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":223,"forks":37,"open_issues":223,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/860"},"html":{"href":"https://github.com/almighty/almighty-core/pull/860"},"issue":{"href":"https://api.github.com/repos/almighty/almighty-core/issues/860"},"comments":{"href":"https://api.github.com/repos/almighty/almighty-core/issues/860/comments"},"review_comments":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/860/comments"},"review_comment":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/860/commits"},"statuses":{"href":"https://api.github.com/repos/almighty/almighty-core/statuses/ad9c47765bbb6f1b47994ed58756848c2911bc2d"}}}}
{"actor":{"display_login":"aslakknutsen"}}