{"action":"closed","number":4772,"pull_request":{"url":"https://api.github.com/repos/Automattic/mongoose/pulls/4772","id":96492887,"html_url":"https://github.com/Automattic/mongoose/pull/4772","diff_url":"https://github.com/Automattic/mongoose/pull/4772.diff","patch_url":"https://github.com/Automattic/mongoose/pull/4772.patch","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/4772","number":4772,"state":"closed","locked":false,"title":"Fix justOne test","user":{"login":"cblanc","id":2160685,"avatar_url":"https://avatars.githubusercontent.com/u/2160685?v=3","gravatar_id":"","url":"https://api.github.com/users/cblanc","html_url":"https://github.com/cblanc","followers_url":"https://api.github.com/users/cblanc/followers","following_url":"https://api.github.com/users/cblanc/following{/other_user}","gists_url":"https://api.github.com/users/cblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/cblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblanc/subscriptions","organizations_url":"https://api.github.com/users/cblanc/orgs","repos_url":"https://api.github.com/users/cblanc/repos","events_url":"https://api.github.com/users/cblanc/events{/privacy}","received_events_url":"https://api.github.com/users/cblanc/received_events","type":"User","site_admin":false},"body":"`npm test` will occasionally fail because the justOne test doesn't cover the case where the alternate populated document is returned\r\n\r\nAlso added in an assertion that `justOne` virtuals should not be returned as an array for good measure","created_at":"2016-12-05T09:18:49Z","updated_at":"2016-12-06T22:20:57Z","closed_at":"2016-12-06T22:20:56Z","merged_at":"2016-12-06T22:20:56Z","merge_commit_sha":"2ec919f53509b890f85b961046759bb0f2c4e979","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/mongoose/milestones/132","html_url":"https://github.com/Automattic/mongoose/milestones/v4.7.2","labels_url":"https://api.github.com/repos/Automattic/mongoose/milestones/132/labels","id":2170445,"number":132,"title":"v4.7.2","description":"","creator":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":9,"state":"open","created_at":"2016-12-02T04:56:27Z","updated_at":"2016-12-06T22:20:57Z","due_on":"2016-12-06T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Automattic/mongoose/pulls/4772/commits","review_comments_url":"https://api.github.com/repos/Automattic/mongoose/pulls/4772/comments","review_comment_url":"https://api.github.com/repos/Automattic/mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/4772/comments","statuses_url":"https://api.github.com/repos/Automattic/mongoose/statuses/f986beed0bdead9b7cb0dad5cf77a80416c93dfc","head":{"label":"cblanc:master","ref":"master","sha":"f986beed0bdead9b7cb0dad5cf77a80416c93dfc","user":{"login":"cblanc","id":2160685,"avatar_url":"https://avatars.githubusercontent.com/u/2160685?v=3","gravatar_id":"","url":"https://api.github.com/users/cblanc","html_url":"https://github.com/cblanc","followers_url":"https://api.github.com/users/cblanc/followers","following_url":"https://api.github.com/users/cblanc/following{/other_user}","gists_url":"https://api.github.com/users/cblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/cblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblanc/subscriptions","organizations_url":"https://api.github.com/users/cblanc/orgs","repos_url":"https://api.github.com/users/cblanc/repos","events_url":"https://api.github.com/users/cblanc/events{/privacy}","received_events_url":"https://api.github.com/users/cblanc/received_events","type":"User","site_admin":false},"repo":{"id":73498227,"name":"mongoose","full_name":"cblanc/mongoose","owner":{"login":"cblanc","id":2160685,"avatar_url":"https://avatars.githubusercontent.com/u/2160685?v=3","gravatar_id":"","url":"https://api.github.com/users/cblanc","html_url":"https://github.com/cblanc","followers_url":"https://api.github.com/users/cblanc/followers","following_url":"https://api.github.com/users/cblanc/following{/other_user}","gists_url":"https://api.github.com/users/cblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/cblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblanc/subscriptions","organizations_url":"https://api.github.com/users/cblanc/orgs","repos_url":"https://api.github.com/users/cblanc/repos","events_url":"https://api.github.com/users/cblanc/events{/privacy}","received_events_url":"https://api.github.com/users/cblanc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cblanc/mongoose","description":"MongoDB object modeling designed to work in an asynchronous environment.","fork":true,"url":"https://api.github.com/repos/cblanc/mongoose","forks_url":"https://api.github.com/repos/cblanc/mongoose/forks","keys_url":"https://api.github.com/repos/cblanc/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cblanc/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cblanc/mongoose/teams","hooks_url":"https://api.github.com/repos/cblanc/mongoose/hooks","issue_events_url":"https://api.github.com/repos/cblanc/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/cblanc/mongoose/events","assignees_url":"https://api.github.com/repos/cblanc/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/cblanc/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/cblanc/mongoose/tags","blobs_url":"https://api.github.com/repos/cblanc/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cblanc/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cblanc/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/cblanc/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cblanc/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/cblanc/mongoose/languages","stargazers_url":"https://api.github.com/repos/cblanc/mongoose/stargazers","contributors_url":"https://api.github.com/repos/cblanc/mongoose/contributors","subscribers_url":"https://api.github.com/repos/cblanc/mongoose/subscribers","subscription_url":"https://api.github.com/repos/cblanc/mongoose/subscription","commits_url":"https://api.github.com/repos/cblanc/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/cblanc/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/cblanc/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/cblanc/mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/cblanc/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/cblanc/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cblanc/mongoose/merges","archive_url":"https://api.github.com/repos/cblanc/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cblanc/mongoose/downloads","issues_url":"https://api.github.com/repos/cblanc/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/cblanc/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/cblanc/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/cblanc/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cblanc/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/cblanc/mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/cblanc/mongoose/deployments","created_at":"2016-11-11T17:37:59Z","updated_at":"2016-11-11T17:38:04Z","pushed_at":"2016-12-05T09:12:06Z","git_url":"git://github.com/cblanc/mongoose.git","ssh_url":"git@github.com:cblanc/mongoose.git","clone_url":"https://github.com/cblanc/mongoose.git","svn_url":"https://github.com/cblanc/mongoose","homepage":"http://mongoosejs.com","size":30249,"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":"Automattic:master","ref":"master","sha":"d02e577f1c687e8206ab83757ccf384f09a7f59a","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":597879,"name":"mongoose","full_name":"Automattic/mongoose","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/mongoose","description":"MongoDB object modeling designed to work in an asynchronous environment.","fork":false,"url":"https://api.github.com/repos/Automattic/mongoose","forks_url":"https://api.github.com/repos/Automattic/mongoose/forks","keys_url":"https://api.github.com/repos/Automattic/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/mongoose/teams","hooks_url":"https://api.github.com/repos/Automattic/mongoose/hooks","issue_events_url":"https://api.github.com/repos/Automattic/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/mongoose/events","assignees_url":"https://api.github.com/repos/Automattic/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/mongoose/tags","blobs_url":"https://api.github.com/repos/Automattic/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/mongoose/languages","stargazers_url":"https://api.github.com/repos/Automattic/mongoose/stargazers","contributors_url":"https://api.github.com/repos/Automattic/mongoose/contributors","subscribers_url":"https://api.github.com/repos/Automattic/mongoose/subscribers","subscription_url":"https://api.github.com/repos/Automattic/mongoose/subscription","commits_url":"https://api.github.com/repos/Automattic/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/mongoose/merges","archive_url":"https://api.github.com/repos/Automattic/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/mongoose/downloads","issues_url":"https://api.github.com/repos/Automattic/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/mongoose/deployments","created_at":"2010-04-06T21:39:05Z","updated_at":"2016-12-06T21:37:48Z","pushed_at":"2016-12-06T22:20:56Z","git_url":"git://github.com/Automattic/mongoose.git","ssh_url":"git@github.com:Automattic/mongoose.git","clone_url":"https://github.com/Automattic/mongoose.git","svn_url":"https://github.com/Automattic/mongoose","homepage":"http://mongoosejs.com","size":41704,"stargazers_count":10919,"watchers_count":10919,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1731,"mirror_url":null,"open_issues_count":363,"forks":1731,"open_issues":363,"watchers":10919,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/mongoose/pulls/4772"},"html":{"href":"https://github.com/Automattic/mongoose/pull/4772"},"issue":{"href":"https://api.github.com/repos/Automattic/mongoose/issues/4772"},"comments":{"href":"https://api.github.com/repos/Automattic/mongoose/issues/4772/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/mongoose/pulls/4772/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/mongoose/pulls/4772/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/mongoose/statuses/f986beed0bdead9b7cb0dad5cf77a80416c93dfc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"vkarpov15"}}