{"action":"closed","number":354,"pull_request":{"url":"https://api.github.com/repos/CartoDB/camshaft/pulls/354","id":174656523,"html_url":"https://github.com/CartoDB/camshaft/pull/354","diff_url":"https://github.com/CartoDB/camshaft/pull/354.diff","patch_url":"https://github.com/CartoDB/camshaft/pull/354.patch","issue_url":"https://api.github.com/repos/CartoDB/camshaft/issues/354","number":354,"state":"closed","locked":false,"title":"Merge: Make sure the output 'cartodb_id' is unique","user":{"login":"Algunenano","id":664253,"avatar_url":"https://avatars2.githubusercontent.com/u/664253?v=4","gravatar_id":"","url":"https://api.github.com/users/Algunenano","html_url":"https://github.com/Algunenano","followers_url":"https://api.github.com/users/Algunenano/followers","following_url":"https://api.github.com/users/Algunenano/following{/other_user}","gists_url":"https://api.github.com/users/Algunenano/gists{/gist_id}","starred_url":"https://api.github.com/users/Algunenano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algunenano/subscriptions","organizations_url":"https://api.github.com/users/Algunenano/orgs","repos_url":"https://api.github.com/users/Algunenano/repos","events_url":"https://api.github.com/users/Algunenano/events{/privacy}","received_events_url":"https://api.github.com/users/Algunenano/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/CartoDB/support/issues/1298\r\n\r\nCurrently the merge analysis can return duplicated cartodb_id's if any row from the `source_geometry` table matches with more than one row from the other table. To avoid the issue I've kept the original cartodb_id intact as `left_cartodb_id` or `right_cartodb_id` and regenerate it with `row_number() over() as cartodb_id`.","created_at":"2018-03-13T13:17:42Z","updated_at":"2018-03-13T15:13:50Z","closed_at":"2018-03-13T15:13:50Z","merged_at":"2018-03-13T15:13:50Z","merge_commit_sha":"95361942ac16d975a9222e769c24b80ab780ac76","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CartoDB/camshaft/pulls/354/commits","review_comments_url":"https://api.github.com/repos/CartoDB/camshaft/pulls/354/comments","review_comment_url":"https://api.github.com/repos/CartoDB/camshaft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CartoDB/camshaft/issues/354/comments","statuses_url":"https://api.github.com/repos/CartoDB/camshaft/statuses/26abd730eb2cad044d4fafa093d9eb92d5e5bee8","head":{"label":"Algunenano:master_merge_cartodb_id","ref":"master_merge_cartodb_id","sha":"26abd730eb2cad044d4fafa093d9eb92d5e5bee8","user":{"login":"Algunenano","id":664253,"avatar_url":"https://avatars2.githubusercontent.com/u/664253?v=4","gravatar_id":"","url":"https://api.github.com/users/Algunenano","html_url":"https://github.com/Algunenano","followers_url":"https://api.github.com/users/Algunenano/followers","following_url":"https://api.github.com/users/Algunenano/following{/other_user}","gists_url":"https://api.github.com/users/Algunenano/gists{/gist_id}","starred_url":"https://api.github.com/users/Algunenano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algunenano/subscriptions","organizations_url":"https://api.github.com/users/Algunenano/orgs","repos_url":"https://api.github.com/users/Algunenano/repos","events_url":"https://api.github.com/users/Algunenano/events{/privacy}","received_events_url":"https://api.github.com/users/Algunenano/received_events","type":"User","site_admin":false},"repo":{"id":109385031,"name":"camshaft","full_name":"Algunenano/camshaft","owner":{"login":"Algunenano","id":664253,"avatar_url":"https://avatars2.githubusercontent.com/u/664253?v=4","gravatar_id":"","url":"https://api.github.com/users/Algunenano","html_url":"https://github.com/Algunenano","followers_url":"https://api.github.com/users/Algunenano/followers","following_url":"https://api.github.com/users/Algunenano/following{/other_user}","gists_url":"https://api.github.com/users/Algunenano/gists{/gist_id}","starred_url":"https://api.github.com/users/Algunenano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algunenano/subscriptions","organizations_url":"https://api.github.com/users/Algunenano/orgs","repos_url":"https://api.github.com/users/Algunenano/repos","events_url":"https://api.github.com/users/Algunenano/events{/privacy}","received_events_url":"https://api.github.com/users/Algunenano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Algunenano/camshaft","description":"Analysis library to create data views from queries","fork":true,"url":"https://api.github.com/repos/Algunenano/camshaft","forks_url":"https://api.github.com/repos/Algunenano/camshaft/forks","keys_url":"https://api.github.com/repos/Algunenano/camshaft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Algunenano/camshaft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Algunenano/camshaft/teams","hooks_url":"https://api.github.com/repos/Algunenano/camshaft/hooks","issue_events_url":"https://api.github.com/repos/Algunenano/camshaft/issues/events{/number}","events_url":"https://api.github.com/repos/Algunenano/camshaft/events","assignees_url":"https://api.github.com/repos/Algunenano/camshaft/assignees{/user}","branches_url":"https://api.github.com/repos/Algunenano/camshaft/branches{/branch}","tags_url":"https://api.github.com/repos/Algunenano/camshaft/tags","blobs_url":"https://api.github.com/repos/Algunenano/camshaft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Algunenano/camshaft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Algunenano/camshaft/git/refs{/sha}","trees_url":"https://api.github.com/repos/Algunenano/camshaft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Algunenano/camshaft/statuses/{sha}","languages_url":"https://api.github.com/repos/Algunenano/camshaft/languages","stargazers_url":"https://api.github.com/repos/Algunenano/camshaft/stargazers","contributors_url":"https://api.github.com/repos/Algunenano/camshaft/contributors","subscribers_url":"https://api.github.com/repos/Algunenano/camshaft/subscribers","subscription_url":"https://api.github.com/repos/Algunenano/camshaft/subscription","commits_url":"https://api.github.com/repos/Algunenano/camshaft/commits{/sha}","git_commits_url":"https://api.github.com/repos/Algunenano/camshaft/git/commits{/sha}","comments_url":"https://api.github.com/repos/Algunenano/camshaft/comments{/number}","issue_comment_url":"https://api.github.com/repos/Algunenano/camshaft/issues/comments{/number}","contents_url":"https://api.github.com/repos/Algunenano/camshaft/contents/{+path}","compare_url":"https://api.github.com/repos/Algunenano/camshaft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Algunenano/camshaft/merges","archive_url":"https://api.github.com/repos/Algunenano/camshaft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Algunenano/camshaft/downloads","issues_url":"https://api.github.com/repos/Algunenano/camshaft/issues{/number}","pulls_url":"https://api.github.com/repos/Algunenano/camshaft/pulls{/number}","milestones_url":"https://api.github.com/repos/Algunenano/camshaft/milestones{/number}","notifications_url":"https://api.github.com/repos/Algunenano/camshaft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Algunenano/camshaft/labels{/name}","releases_url":"https://api.github.com/repos/Algunenano/camshaft/releases{/id}","deployments_url":"https://api.github.com/repos/Algunenano/camshaft/deployments","created_at":"2017-11-03T10:51:56Z","updated_at":"2017-11-03T10:51:58Z","pushed_at":"2018-03-13T13:13:29Z","git_url":"git://github.com/Algunenano/camshaft.git","ssh_url":"git@github.com:Algunenano/camshaft.git","clone_url":"https://github.com/Algunenano/camshaft.git","svn_url":"https://github.com/Algunenano/camshaft","homepage":null,"size":1131,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CartoDB:master","ref":"master","sha":"7f15ab51b4354794fc4683cbadf52483151564a0","user":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":51438175,"name":"camshaft","full_name":"CartoDB/camshaft","owner":{"login":"CartoDB","id":1799254,"avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/camshaft","description":"Analysis library to create data views from queries","fork":false,"url":"https://api.github.com/repos/CartoDB/camshaft","forks_url":"https://api.github.com/repos/CartoDB/camshaft/forks","keys_url":"https://api.github.com/repos/CartoDB/camshaft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/camshaft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/camshaft/teams","hooks_url":"https://api.github.com/repos/CartoDB/camshaft/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/camshaft/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/camshaft/events","assignees_url":"https://api.github.com/repos/CartoDB/camshaft/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/camshaft/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/camshaft/tags","blobs_url":"https://api.github.com/repos/CartoDB/camshaft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/camshaft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/camshaft/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/camshaft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/camshaft/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/camshaft/languages","stargazers_url":"https://api.github.com/repos/CartoDB/camshaft/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/camshaft/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/camshaft/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/camshaft/subscription","commits_url":"https://api.github.com/repos/CartoDB/camshaft/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/camshaft/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/camshaft/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/camshaft/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/camshaft/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/camshaft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/camshaft/merges","archive_url":"https://api.github.com/repos/CartoDB/camshaft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/camshaft/downloads","issues_url":"https://api.github.com/repos/CartoDB/camshaft/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/camshaft/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/camshaft/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/camshaft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/camshaft/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/camshaft/releases{/id}","deployments_url":"https://api.github.com/repos/CartoDB/camshaft/deployments","created_at":"2016-02-10T11:54:46Z","updated_at":"2018-03-12T15:18:10Z","pushed_at":"2018-03-13T15:13:50Z","git_url":"git://github.com/CartoDB/camshaft.git","ssh_url":"git@github.com:CartoDB/camshaft.git","clone_url":"https://github.com/CartoDB/camshaft.git","svn_url":"https://github.com/CartoDB/camshaft","homepage":null,"size":1133,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":54,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":5,"open_issues":54,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CartoDB/camshaft/pulls/354"},"html":{"href":"https://github.com/CartoDB/camshaft/pull/354"},"issue":{"href":"https://api.github.com/repos/CartoDB/camshaft/issues/354"},"comments":{"href":"https://api.github.com/repos/CartoDB/camshaft/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/CartoDB/camshaft/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/CartoDB/camshaft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CartoDB/camshaft/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/CartoDB/camshaft/statuses/26abd730eb2cad044d4fafa093d9eb92d5e5bee8"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Algunenano","id":664253,"avatar_url":"https://avatars2.githubusercontent.com/u/664253?v=4","gravatar_id":"","url":"https://api.github.com/users/Algunenano","html_url":"https://github.com/Algunenano","followers_url":"https://api.github.com/users/Algunenano/followers","following_url":"https://api.github.com/users/Algunenano/following{/other_user}","gists_url":"https://api.github.com/users/Algunenano/gists{/gist_id}","starred_url":"https://api.github.com/users/Algunenano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Algunenano/subscriptions","organizations_url":"https://api.github.com/users/Algunenano/orgs","repos_url":"https://api.github.com/users/Algunenano/repos","events_url":"https://api.github.com/users/Algunenano/events{/privacy}","received_events_url":"https://api.github.com/users/Algunenano/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":40,"deletions":19,"changed_files":3}}
{"actor":{"display_login":"Algunenano"}}