{"action":"closed","number":481,"pull_request":{"url":"https://api.github.com/repos/deployd/deployd/pulls/481","id":27120235,"html_url":"https://github.com/deployd/deployd/pull/481","diff_url":"https://github.com/deployd/deployd/pull/481.diff","patch_url":"https://github.com/deployd/deployd/pull/481.patch","issue_url":"https://api.github.com/repos/deployd/deployd/issues/481","number":481,"state":"closed","locked":false,"title":"fix(session): Refactor session creation code to use promises in order to fix a possible race condition while inserting a session to the database.","user":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"body":"Upon auditing the code I found a potential issue which also caused this build to fail: https://travis-ci.org/deployd/deployd/builds/46467404\r\n\r\nThe explanation for the change is here: \r\nhttps://github.com/deployd/deployd/pull/476#issuecomment-69373781\r\n\r\n","created_at":"2015-01-09T18:49:37Z","updated_at":"2015-01-12T15:45:36Z","closed_at":"2015-01-12T15:45:36Z","merged_at":null,"merge_commit_sha":"a72beeacb6b1ac9f8a0276424281445302e2c007","assignee":{"login":"ericfong","id":237028,"avatar_url":"https://avatars.githubusercontent.com/u/237028?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfong","html_url":"https://github.com/ericfong","followers_url":"https://api.github.com/users/ericfong/followers","following_url":"https://api.github.com/users/ericfong/following{/other_user}","gists_url":"https://api.github.com/users/ericfong/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfong/subscriptions","organizations_url":"https://api.github.com/users/ericfong/orgs","repos_url":"https://api.github.com/users/ericfong/repos","events_url":"https://api.github.com/users/ericfong/events{/privacy}","received_events_url":"https://api.github.com/users/ericfong/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/deployd/deployd/milestones/4","labels_url":"https://api.github.com/repos/deployd/deployd/milestones/4/labels","id":183551,"number":4,"title":"0.8.0","description":"### The housekeeping release\r\n\r\nThis release contains mostly bug fixes, code cleanup, new documentation, dependency updates and a few features.","creator":{"login":"ritch","id":462228,"avatar_url":"https://avatars.githubusercontent.com/u/462228?v=3","gravatar_id":"","url":"https://api.github.com/users/ritch","html_url":"https://github.com/ritch","followers_url":"https://api.github.com/users/ritch/followers","following_url":"https://api.github.com/users/ritch/following{/other_user}","gists_url":"https://api.github.com/users/ritch/gists{/gist_id}","starred_url":"https://api.github.com/users/ritch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritch/subscriptions","organizations_url":"https://api.github.com/users/ritch/orgs","repos_url":"https://api.github.com/users/ritch/repos","events_url":"https://api.github.com/users/ritch/events{/privacy}","received_events_url":"https://api.github.com/users/ritch/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":13,"state":"open","created_at":"2012-09-25T16:49:55Z","updated_at":"2015-01-12T15:45:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/deployd/deployd/pulls/481/commits","review_comments_url":"https://api.github.com/repos/deployd/deployd/pulls/481/comments","review_comment_url":"https://api.github.com/repos/deployd/deployd/pulls/comments/{number}","comments_url":"https://api.github.com/repos/deployd/deployd/issues/481/comments","statuses_url":"https://api.github.com/repos/deployd/deployd/statuses/deb248d27505c6197db08a867c9f3495d742861e","head":{"label":"andreialecu:fix-sessionrace","ref":"fix-sessionrace","sha":"deb248d27505c6197db08a867c9f3495d742861e","user":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"repo":{"id":28204305,"name":"deployd","full_name":"andreialecu/deployd","owner":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreialecu/deployd","description":"a toolkit for building realtime APIs","fork":true,"url":"https://api.github.com/repos/andreialecu/deployd","forks_url":"https://api.github.com/repos/andreialecu/deployd/forks","keys_url":"https://api.github.com/repos/andreialecu/deployd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreialecu/deployd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreialecu/deployd/teams","hooks_url":"https://api.github.com/repos/andreialecu/deployd/hooks","issue_events_url":"https://api.github.com/repos/andreialecu/deployd/issues/events{/number}","events_url":"https://api.github.com/repos/andreialecu/deployd/events","assignees_url":"https://api.github.com/repos/andreialecu/deployd/assignees{/user}","branches_url":"https://api.github.com/repos/andreialecu/deployd/branches{/branch}","tags_url":"https://api.github.com/repos/andreialecu/deployd/tags","blobs_url":"https://api.github.com/repos/andreialecu/deployd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreialecu/deployd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreialecu/deployd/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreialecu/deployd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreialecu/deployd/statuses/{sha}","languages_url":"https://api.github.com/repos/andreialecu/deployd/languages","stargazers_url":"https://api.github.com/repos/andreialecu/deployd/stargazers","contributors_url":"https://api.github.com/repos/andreialecu/deployd/contributors","subscribers_url":"https://api.github.com/repos/andreialecu/deployd/subscribers","subscription_url":"https://api.github.com/repos/andreialecu/deployd/subscription","commits_url":"https://api.github.com/repos/andreialecu/deployd/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreialecu/deployd/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreialecu/deployd/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreialecu/deployd/issues/comments/{number}","contents_url":"https://api.github.com/repos/andreialecu/deployd/contents/{+path}","compare_url":"https://api.github.com/repos/andreialecu/deployd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreialecu/deployd/merges","archive_url":"https://api.github.com/repos/andreialecu/deployd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreialecu/deployd/downloads","issues_url":"https://api.github.com/repos/andreialecu/deployd/issues{/number}","pulls_url":"https://api.github.com/repos/andreialecu/deployd/pulls{/number}","milestones_url":"https://api.github.com/repos/andreialecu/deployd/milestones{/number}","notifications_url":"https://api.github.com/repos/andreialecu/deployd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreialecu/deployd/labels{/name}","releases_url":"https://api.github.com/repos/andreialecu/deployd/releases{/id}","created_at":"2014-12-18T22:26:45Z","updated_at":"2015-01-10T16:14:26Z","pushed_at":"2015-01-12T12:24:06Z","git_url":"git://github.com/andreialecu/deployd.git","ssh_url":"git@github.com:andreialecu/deployd.git","clone_url":"https://github.com/andreialecu/deployd.git","svn_url":"https://github.com/andreialecu/deployd","homepage":"http://www.deployd.com","size":11189,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"deployd:master","ref":"master","sha":"ab89ec3917f91c68456dd9f22317da0b2bc023db","user":{"login":"deployd","id":1043054,"avatar_url":"https://avatars.githubusercontent.com/u/1043054?v=3","gravatar_id":"","url":"https://api.github.com/users/deployd","html_url":"https://github.com/deployd","followers_url":"https://api.github.com/users/deployd/followers","following_url":"https://api.github.com/users/deployd/following{/other_user}","gists_url":"https://api.github.com/users/deployd/gists{/gist_id}","starred_url":"https://api.github.com/users/deployd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deployd/subscriptions","organizations_url":"https://api.github.com/users/deployd/orgs","repos_url":"https://api.github.com/users/deployd/repos","events_url":"https://api.github.com/users/deployd/events{/privacy}","received_events_url":"https://api.github.com/users/deployd/received_events","type":"Organization","site_admin":false},"repo":{"id":2367681,"name":"deployd","full_name":"deployd/deployd","owner":{"login":"deployd","id":1043054,"avatar_url":"https://avatars.githubusercontent.com/u/1043054?v=3","gravatar_id":"","url":"https://api.github.com/users/deployd","html_url":"https://github.com/deployd","followers_url":"https://api.github.com/users/deployd/followers","following_url":"https://api.github.com/users/deployd/following{/other_user}","gists_url":"https://api.github.com/users/deployd/gists{/gist_id}","starred_url":"https://api.github.com/users/deployd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deployd/subscriptions","organizations_url":"https://api.github.com/users/deployd/orgs","repos_url":"https://api.github.com/users/deployd/repos","events_url":"https://api.github.com/users/deployd/events{/privacy}","received_events_url":"https://api.github.com/users/deployd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deployd/deployd","description":"a toolkit for building realtime APIs","fork":false,"url":"https://api.github.com/repos/deployd/deployd","forks_url":"https://api.github.com/repos/deployd/deployd/forks","keys_url":"https://api.github.com/repos/deployd/deployd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deployd/deployd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deployd/deployd/teams","hooks_url":"https://api.github.com/repos/deployd/deployd/hooks","issue_events_url":"https://api.github.com/repos/deployd/deployd/issues/events{/number}","events_url":"https://api.github.com/repos/deployd/deployd/events","assignees_url":"https://api.github.com/repos/deployd/deployd/assignees{/user}","branches_url":"https://api.github.com/repos/deployd/deployd/branches{/branch}","tags_url":"https://api.github.com/repos/deployd/deployd/tags","blobs_url":"https://api.github.com/repos/deployd/deployd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deployd/deployd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deployd/deployd/git/refs{/sha}","trees_url":"https://api.github.com/repos/deployd/deployd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deployd/deployd/statuses/{sha}","languages_url":"https://api.github.com/repos/deployd/deployd/languages","stargazers_url":"https://api.github.com/repos/deployd/deployd/stargazers","contributors_url":"https://api.github.com/repos/deployd/deployd/contributors","subscribers_url":"https://api.github.com/repos/deployd/deployd/subscribers","subscription_url":"https://api.github.com/repos/deployd/deployd/subscription","commits_url":"https://api.github.com/repos/deployd/deployd/commits{/sha}","git_commits_url":"https://api.github.com/repos/deployd/deployd/git/commits{/sha}","comments_url":"https://api.github.com/repos/deployd/deployd/comments{/number}","issue_comment_url":"https://api.github.com/repos/deployd/deployd/issues/comments/{number}","contents_url":"https://api.github.com/repos/deployd/deployd/contents/{+path}","compare_url":"https://api.github.com/repos/deployd/deployd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deployd/deployd/merges","archive_url":"https://api.github.com/repos/deployd/deployd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deployd/deployd/downloads","issues_url":"https://api.github.com/repos/deployd/deployd/issues{/number}","pulls_url":"https://api.github.com/repos/deployd/deployd/pulls{/number}","milestones_url":"https://api.github.com/repos/deployd/deployd/milestones{/number}","notifications_url":"https://api.github.com/repos/deployd/deployd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deployd/deployd/labels{/name}","releases_url":"https://api.github.com/repos/deployd/deployd/releases{/id}","created_at":"2011-09-11T21:58:04Z","updated_at":"2015-01-12T15:44:48Z","pushed_at":"2015-01-12T15:44:48Z","git_url":"git://github.com/deployd/deployd.git","ssh_url":"git@github.com:deployd/deployd.git","clone_url":"https://github.com/deployd/deployd.git","svn_url":"https://github.com/deployd/deployd","homepage":"http://www.deployd.com","size":18499,"stargazers_count":2789,"watchers_count":2789,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":404,"mirror_url":null,"open_issues_count":170,"forks":404,"open_issues":170,"watchers":2789,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deployd/deployd/pulls/481"},"html":{"href":"https://github.com/deployd/deployd/pull/481"},"issue":{"href":"https://api.github.com/repos/deployd/deployd/issues/481"},"comments":{"href":"https://api.github.com/repos/deployd/deployd/issues/481/comments"},"review_comments":{"href":"https://api.github.com/repos/deployd/deployd/pulls/481/comments"},"review_comment":{"href":"https://api.github.com/repos/deployd/deployd/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/deployd/deployd/pulls/481/commits"},"statuses":{"href":"https://api.github.com/repos/deployd/deployd/statuses/deb248d27505c6197db08a867c9f3495d742861e"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":1,"commits":2,"additions":23,"deletions":13,"changed_files":1}}