{"action":"closed","number":4199,"pull_request":{"url":"https://api.github.com/repos/mongodb/mongoid/pulls/4199","id":51794563,"html_url":"https://github.com/mongodb/mongoid/pull/4199","diff_url":"https://github.com/mongodb/mongoid/pull/4199.diff","patch_url":"https://github.com/mongodb/mongoid/pull/4199.patch","issue_url":"https://api.github.com/repos/mongodb/mongoid/issues/4199","number":4199,"state":"closed","locked":false,"title":"RUBY-1072 MONGOID-4192 Add limit of 1 to Model#first and Model#last to avoid leaving cursors open on the server","user":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-25T13:35:10Z","updated_at":"2015-11-25T15:24:50Z","closed_at":"2015-11-25T15:24:49Z","merged_at":"2015-11-25T15:24:49Z","merge_commit_sha":"3090002669b9ac4d415eed3fe983f99f5f8ac01e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongoid/pulls/4199/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongoid/pulls/4199/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongoid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongoid/issues/4199/comments","statuses_url":"https://api.github.com/repos/mongodb/mongoid/statuses/cca0eb9492e2a3420a0a60559ad162ec7918282b","head":{"label":"estolfo:RUBY-1072-first","ref":"RUBY-1072-first","sha":"cca0eb9492e2a3420a0a60559ad162ec7918282b","user":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"repo":{"id":42467243,"name":"mongoid","full_name":"estolfo/mongoid","owner":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estolfo/mongoid","description":"Ruby ODM framework for MongoDB","fork":true,"url":"https://api.github.com/repos/estolfo/mongoid","forks_url":"https://api.github.com/repos/estolfo/mongoid/forks","keys_url":"https://api.github.com/repos/estolfo/mongoid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estolfo/mongoid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estolfo/mongoid/teams","hooks_url":"https://api.github.com/repos/estolfo/mongoid/hooks","issue_events_url":"https://api.github.com/repos/estolfo/mongoid/issues/events{/number}","events_url":"https://api.github.com/repos/estolfo/mongoid/events","assignees_url":"https://api.github.com/repos/estolfo/mongoid/assignees{/user}","branches_url":"https://api.github.com/repos/estolfo/mongoid/branches{/branch}","tags_url":"https://api.github.com/repos/estolfo/mongoid/tags","blobs_url":"https://api.github.com/repos/estolfo/mongoid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estolfo/mongoid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estolfo/mongoid/git/refs{/sha}","trees_url":"https://api.github.com/repos/estolfo/mongoid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estolfo/mongoid/statuses/{sha}","languages_url":"https://api.github.com/repos/estolfo/mongoid/languages","stargazers_url":"https://api.github.com/repos/estolfo/mongoid/stargazers","contributors_url":"https://api.github.com/repos/estolfo/mongoid/contributors","subscribers_url":"https://api.github.com/repos/estolfo/mongoid/subscribers","subscription_url":"https://api.github.com/repos/estolfo/mongoid/subscription","commits_url":"https://api.github.com/repos/estolfo/mongoid/commits{/sha}","git_commits_url":"https://api.github.com/repos/estolfo/mongoid/git/commits{/sha}","comments_url":"https://api.github.com/repos/estolfo/mongoid/comments{/number}","issue_comment_url":"https://api.github.com/repos/estolfo/mongoid/issues/comments{/number}","contents_url":"https://api.github.com/repos/estolfo/mongoid/contents/{+path}","compare_url":"https://api.github.com/repos/estolfo/mongoid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estolfo/mongoid/merges","archive_url":"https://api.github.com/repos/estolfo/mongoid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estolfo/mongoid/downloads","issues_url":"https://api.github.com/repos/estolfo/mongoid/issues{/number}","pulls_url":"https://api.github.com/repos/estolfo/mongoid/pulls{/number}","milestones_url":"https://api.github.com/repos/estolfo/mongoid/milestones{/number}","notifications_url":"https://api.github.com/repos/estolfo/mongoid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estolfo/mongoid/labels{/name}","releases_url":"https://api.github.com/repos/estolfo/mongoid/releases{/id}","created_at":"2015-09-14T18:04:04Z","updated_at":"2015-09-14T18:04:07Z","pushed_at":"2015-11-25T15:21:23Z","git_url":"git://github.com/estolfo/mongoid.git","ssh_url":"git@github.com:estolfo/mongoid.git","clone_url":"https://github.com/estolfo/mongoid.git","svn_url":"https://github.com/estolfo/mongoid","homepage":"http://mongoid.org","size":13582,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"mongodb:5.0.0-stable","ref":"5.0.0-stable","sha":"9fca9c254afbb38a0ead1d6133edea683f63ba35","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":309009,"name":"mongoid","full_name":"mongodb/mongoid","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongoid","description":"Ruby ODM framework for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongoid","forks_url":"https://api.github.com/repos/mongodb/mongoid/forks","keys_url":"https://api.github.com/repos/mongodb/mongoid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongoid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongoid/teams","hooks_url":"https://api.github.com/repos/mongodb/mongoid/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongoid/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongoid/events","assignees_url":"https://api.github.com/repos/mongodb/mongoid/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongoid/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongoid/tags","blobs_url":"https://api.github.com/repos/mongodb/mongoid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongoid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongoid/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongoid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongoid/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongoid/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongoid/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongoid/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongoid/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongoid/subscription","commits_url":"https://api.github.com/repos/mongodb/mongoid/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongoid/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongoid/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongoid/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongoid/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongoid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongoid/merges","archive_url":"https://api.github.com/repos/mongodb/mongoid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongoid/downloads","issues_url":"https://api.github.com/repos/mongodb/mongoid/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongoid/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongoid/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongoid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongoid/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongoid/releases{/id}","created_at":"2009-09-16T16:24:56Z","updated_at":"2015-11-23T11:07:07Z","pushed_at":"2015-11-25T15:24:49Z","git_url":"git://github.com/mongodb/mongoid.git","ssh_url":"git@github.com:mongodb/mongoid.git","clone_url":"https://github.com/mongodb/mongoid.git","svn_url":"https://github.com/mongodb/mongoid","homepage":"http://mongoid.org","size":18753,"stargazers_count":3286,"watchers_count":3286,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1139,"mirror_url":null,"open_issues_count":300,"forks":1139,"open_issues":300,"watchers":3286,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongoid/pulls/4199"},"html":{"href":"https://github.com/mongodb/mongoid/pull/4199"},"issue":{"href":"https://api.github.com/repos/mongodb/mongoid/issues/4199"},"comments":{"href":"https://api.github.com/repos/mongodb/mongoid/issues/4199/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongoid/pulls/4199/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongoid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongoid/pulls/4199/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongoid/statuses/cca0eb9492e2a3420a0a60559ad162ec7918282b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":67,"deletions":8,"changed_files":3}}