{"action":"closed","number":16,"pull_request":{"url":"https://api.github.com/repos/djreimer/sequenced/pulls/16","id":51303580,"html_url":"https://github.com/djreimer/sequenced/pull/16","diff_url":"https://github.com/djreimer/sequenced/pull/16.diff","patch_url":"https://github.com/djreimer/sequenced/pull/16.patch","issue_url":"https://api.github.com/repos/djreimer/sequenced/issues/16","number":16,"state":"closed","locked":false,"title":"Prevent race conditions on postgres","user":{"login":"samphilipd","id":4147639,"avatar_url":"https://avatars.githubusercontent.com/u/4147639?v=3","gravatar_id":"","url":"https://api.github.com/users/samphilipd","html_url":"https://github.com/samphilipd","followers_url":"https://api.github.com/users/samphilipd/followers","following_url":"https://api.github.com/users/samphilipd/following{/other_user}","gists_url":"https://api.github.com/users/samphilipd/gists{/gist_id}","starred_url":"https://api.github.com/users/samphilipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samphilipd/subscriptions","organizations_url":"https://api.github.com/users/samphilipd/orgs","repos_url":"https://api.github.com/users/samphilipd/repos","events_url":"https://api.github.com/users/samphilipd/events{/privacy}","received_events_url":"https://api.github.com/users/samphilipd/received_events","type":"User","site_admin":false},"body":"Tested with 50 simultaneous connections. This 100% guarantees correctness of the sequential_id in Postgres and makes no change to the previous behavior for other database adapters.\r\n\r\nUnfortunately this is not so trivial to implement in MySQL because table locks must be manually released.","created_at":"2015-11-20T00:44:20Z","updated_at":"2015-11-28T01:32:17Z","closed_at":"2015-11-28T01:32:17Z","merged_at":"2015-11-28T01:32:17Z","merge_commit_sha":"f979c68d4368020adb3331a6e7658211dc2a6c10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/djreimer/sequenced/pulls/16/commits","review_comments_url":"https://api.github.com/repos/djreimer/sequenced/pulls/16/comments","review_comment_url":"https://api.github.com/repos/djreimer/sequenced/pulls/comments{/number}","comments_url":"https://api.github.com/repos/djreimer/sequenced/issues/16/comments","statuses_url":"https://api.github.com/repos/djreimer/sequenced/statuses/96b2f7086f43ac706f1bf0d8371d7f0548d8018a","head":{"label":"samphilipd:sam/manage_concurrency_using_table_locks","ref":"sam/manage_concurrency_using_table_locks","sha":"96b2f7086f43ac706f1bf0d8371d7f0548d8018a","user":{"login":"samphilipd","id":4147639,"avatar_url":"https://avatars.githubusercontent.com/u/4147639?v=3","gravatar_id":"","url":"https://api.github.com/users/samphilipd","html_url":"https://github.com/samphilipd","followers_url":"https://api.github.com/users/samphilipd/followers","following_url":"https://api.github.com/users/samphilipd/following{/other_user}","gists_url":"https://api.github.com/users/samphilipd/gists{/gist_id}","starred_url":"https://api.github.com/users/samphilipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samphilipd/subscriptions","organizations_url":"https://api.github.com/users/samphilipd/orgs","repos_url":"https://api.github.com/users/samphilipd/repos","events_url":"https://api.github.com/users/samphilipd/events{/privacy}","received_events_url":"https://api.github.com/users/samphilipd/received_events","type":"User","site_admin":false},"repo":{"id":46509115,"name":"sequenced","full_name":"samphilipd/sequenced","owner":{"login":"samphilipd","id":4147639,"avatar_url":"https://avatars.githubusercontent.com/u/4147639?v=3","gravatar_id":"","url":"https://api.github.com/users/samphilipd","html_url":"https://github.com/samphilipd","followers_url":"https://api.github.com/users/samphilipd/followers","following_url":"https://api.github.com/users/samphilipd/following{/other_user}","gists_url":"https://api.github.com/users/samphilipd/gists{/gist_id}","starred_url":"https://api.github.com/users/samphilipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samphilipd/subscriptions","organizations_url":"https://api.github.com/users/samphilipd/orgs","repos_url":"https://api.github.com/users/samphilipd/repos","events_url":"https://api.github.com/users/samphilipd/events{/privacy}","received_events_url":"https://api.github.com/users/samphilipd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samphilipd/sequenced","description":"Generate scoped sequential IDs for ActiveRecord models","fork":true,"url":"https://api.github.com/repos/samphilipd/sequenced","forks_url":"https://api.github.com/repos/samphilipd/sequenced/forks","keys_url":"https://api.github.com/repos/samphilipd/sequenced/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samphilipd/sequenced/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samphilipd/sequenced/teams","hooks_url":"https://api.github.com/repos/samphilipd/sequenced/hooks","issue_events_url":"https://api.github.com/repos/samphilipd/sequenced/issues/events{/number}","events_url":"https://api.github.com/repos/samphilipd/sequenced/events","assignees_url":"https://api.github.com/repos/samphilipd/sequenced/assignees{/user}","branches_url":"https://api.github.com/repos/samphilipd/sequenced/branches{/branch}","tags_url":"https://api.github.com/repos/samphilipd/sequenced/tags","blobs_url":"https://api.github.com/repos/samphilipd/sequenced/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samphilipd/sequenced/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samphilipd/sequenced/git/refs{/sha}","trees_url":"https://api.github.com/repos/samphilipd/sequenced/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samphilipd/sequenced/statuses/{sha}","languages_url":"https://api.github.com/repos/samphilipd/sequenced/languages","stargazers_url":"https://api.github.com/repos/samphilipd/sequenced/stargazers","contributors_url":"https://api.github.com/repos/samphilipd/sequenced/contributors","subscribers_url":"https://api.github.com/repos/samphilipd/sequenced/subscribers","subscription_url":"https://api.github.com/repos/samphilipd/sequenced/subscription","commits_url":"https://api.github.com/repos/samphilipd/sequenced/commits{/sha}","git_commits_url":"https://api.github.com/repos/samphilipd/sequenced/git/commits{/sha}","comments_url":"https://api.github.com/repos/samphilipd/sequenced/comments{/number}","issue_comment_url":"https://api.github.com/repos/samphilipd/sequenced/issues/comments{/number}","contents_url":"https://api.github.com/repos/samphilipd/sequenced/contents/{+path}","compare_url":"https://api.github.com/repos/samphilipd/sequenced/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samphilipd/sequenced/merges","archive_url":"https://api.github.com/repos/samphilipd/sequenced/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samphilipd/sequenced/downloads","issues_url":"https://api.github.com/repos/samphilipd/sequenced/issues{/number}","pulls_url":"https://api.github.com/repos/samphilipd/sequenced/pulls{/number}","milestones_url":"https://api.github.com/repos/samphilipd/sequenced/milestones{/number}","notifications_url":"https://api.github.com/repos/samphilipd/sequenced/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samphilipd/sequenced/labels{/name}","releases_url":"https://api.github.com/repos/samphilipd/sequenced/releases{/id}","created_at":"2015-11-19T17:33:57Z","updated_at":"2015-11-19T17:33:57Z","pushed_at":"2015-11-20T21:22:38Z","git_url":"git://github.com/samphilipd/sequenced.git","ssh_url":"git@github.com:samphilipd/sequenced.git","clone_url":"https://github.com/samphilipd/sequenced.git","svn_url":"https://github.com/samphilipd/sequenced","homepage":"","size":415,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"djreimer:master","ref":"master","sha":"a77f652b0d18fb6b8b8c09881b1a2df341ea5cf9","user":{"login":"djreimer","id":341387,"avatar_url":"https://avatars.githubusercontent.com/u/341387?v=3","gravatar_id":"","url":"https://api.github.com/users/djreimer","html_url":"https://github.com/djreimer","followers_url":"https://api.github.com/users/djreimer/followers","following_url":"https://api.github.com/users/djreimer/following{/other_user}","gists_url":"https://api.github.com/users/djreimer/gists{/gist_id}","starred_url":"https://api.github.com/users/djreimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djreimer/subscriptions","organizations_url":"https://api.github.com/users/djreimer/orgs","repos_url":"https://api.github.com/users/djreimer/repos","events_url":"https://api.github.com/users/djreimer/events{/privacy}","received_events_url":"https://api.github.com/users/djreimer/received_events","type":"User","site_admin":false},"repo":{"id":3475088,"name":"sequenced","full_name":"djreimer/sequenced","owner":{"login":"djreimer","id":341387,"avatar_url":"https://avatars.githubusercontent.com/u/341387?v=3","gravatar_id":"","url":"https://api.github.com/users/djreimer","html_url":"https://github.com/djreimer","followers_url":"https://api.github.com/users/djreimer/followers","following_url":"https://api.github.com/users/djreimer/following{/other_user}","gists_url":"https://api.github.com/users/djreimer/gists{/gist_id}","starred_url":"https://api.github.com/users/djreimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djreimer/subscriptions","organizations_url":"https://api.github.com/users/djreimer/orgs","repos_url":"https://api.github.com/users/djreimer/repos","events_url":"https://api.github.com/users/djreimer/events{/privacy}","received_events_url":"https://api.github.com/users/djreimer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djreimer/sequenced","description":"Generate scoped sequential IDs for ActiveRecord models","fork":false,"url":"https://api.github.com/repos/djreimer/sequenced","forks_url":"https://api.github.com/repos/djreimer/sequenced/forks","keys_url":"https://api.github.com/repos/djreimer/sequenced/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djreimer/sequenced/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djreimer/sequenced/teams","hooks_url":"https://api.github.com/repos/djreimer/sequenced/hooks","issue_events_url":"https://api.github.com/repos/djreimer/sequenced/issues/events{/number}","events_url":"https://api.github.com/repos/djreimer/sequenced/events","assignees_url":"https://api.github.com/repos/djreimer/sequenced/assignees{/user}","branches_url":"https://api.github.com/repos/djreimer/sequenced/branches{/branch}","tags_url":"https://api.github.com/repos/djreimer/sequenced/tags","blobs_url":"https://api.github.com/repos/djreimer/sequenced/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djreimer/sequenced/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djreimer/sequenced/git/refs{/sha}","trees_url":"https://api.github.com/repos/djreimer/sequenced/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djreimer/sequenced/statuses/{sha}","languages_url":"https://api.github.com/repos/djreimer/sequenced/languages","stargazers_url":"https://api.github.com/repos/djreimer/sequenced/stargazers","contributors_url":"https://api.github.com/repos/djreimer/sequenced/contributors","subscribers_url":"https://api.github.com/repos/djreimer/sequenced/subscribers","subscription_url":"https://api.github.com/repos/djreimer/sequenced/subscription","commits_url":"https://api.github.com/repos/djreimer/sequenced/commits{/sha}","git_commits_url":"https://api.github.com/repos/djreimer/sequenced/git/commits{/sha}","comments_url":"https://api.github.com/repos/djreimer/sequenced/comments{/number}","issue_comment_url":"https://api.github.com/repos/djreimer/sequenced/issues/comments{/number}","contents_url":"https://api.github.com/repos/djreimer/sequenced/contents/{+path}","compare_url":"https://api.github.com/repos/djreimer/sequenced/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djreimer/sequenced/merges","archive_url":"https://api.github.com/repos/djreimer/sequenced/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djreimer/sequenced/downloads","issues_url":"https://api.github.com/repos/djreimer/sequenced/issues{/number}","pulls_url":"https://api.github.com/repos/djreimer/sequenced/pulls{/number}","milestones_url":"https://api.github.com/repos/djreimer/sequenced/milestones{/number}","notifications_url":"https://api.github.com/repos/djreimer/sequenced/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djreimer/sequenced/labels{/name}","releases_url":"https://api.github.com/repos/djreimer/sequenced/releases{/id}","created_at":"2012-02-18T00:13:52Z","updated_at":"2015-11-22T23:36:52Z","pushed_at":"2015-11-28T01:32:17Z","git_url":"git://github.com/djreimer/sequenced.git","ssh_url":"git@github.com:djreimer/sequenced.git","clone_url":"https://github.com/djreimer/sequenced.git","svn_url":"https://github.com/djreimer/sequenced","homepage":"","size":690,"stargazers_count":89,"watchers_count":89,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":2,"forks":22,"open_issues":2,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/djreimer/sequenced/pulls/16"},"html":{"href":"https://github.com/djreimer/sequenced/pull/16"},"issue":{"href":"https://api.github.com/repos/djreimer/sequenced/issues/16"},"comments":{"href":"https://api.github.com/repos/djreimer/sequenced/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/djreimer/sequenced/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/djreimer/sequenced/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/djreimer/sequenced/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/djreimer/sequenced/statuses/96b2f7086f43ac706f1bf0d8371d7f0548d8018a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"djreimer","id":341387,"avatar_url":"https://avatars.githubusercontent.com/u/341387?v=3","gravatar_id":"","url":"https://api.github.com/users/djreimer","html_url":"https://github.com/djreimer","followers_url":"https://api.github.com/users/djreimer/followers","following_url":"https://api.github.com/users/djreimer/following{/other_user}","gists_url":"https://api.github.com/users/djreimer/gists{/gist_id}","starred_url":"https://api.github.com/users/djreimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djreimer/subscriptions","organizations_url":"https://api.github.com/users/djreimer/orgs","repos_url":"https://api.github.com/users/djreimer/repos","events_url":"https://api.github.com/users/djreimer/events{/privacy}","received_events_url":"https://api.github.com/users/djreimer/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":4,"additions":180,"deletions":33,"changed_files":11}}