{"action":"opened","number":2576,"pull_request":{"url":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576","id":26841893,"html_url":"https://github.com/LearnBoost/mongoose/pull/2576","diff_url":"https://github.com/LearnBoost/mongoose/pull/2576.diff","patch_url":"https://github.com/LearnBoost/mongoose/pull/2576.patch","issue_url":"https://api.github.com/repos/LearnBoost/mongoose/issues/2576","number":2576,"state":"open","locked":false,"title":"Allow explicitly excluding paths from versioning","user":{"login":"csabapalfi","id":181959,"avatar_url":"https://avatars.githubusercontent.com/u/181959?v=3","gravatar_id":"","url":"https://api.github.com/users/csabapalfi","html_url":"https://github.com/csabapalfi","followers_url":"https://api.github.com/users/csabapalfi/followers","following_url":"https://api.github.com/users/csabapalfi/following{/other_user}","gists_url":"https://api.github.com/users/csabapalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/csabapalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csabapalfi/subscriptions","organizations_url":"https://api.github.com/users/csabapalfi/orgs","repos_url":"https://api.github.com/users/csabapalfi/repos","events_url":"https://api.github.com/users/csabapalfi/events{/privacy}","received_events_url":"https://api.github.com/users/csabapalfi/received_events","type":"User","site_admin":false},"body":"First of all versioning is super useful. Thanks!\r\n\r\nI'd like the ability to exclude certain array paths though. If elements in an array are only ever soft-deleted or properties updated one-by-one there's no point in including it in versioning and can result in false positive ```VersionError```s on concurrent updates.\r\n\r\nSuggested syntax: \r\n```js\r\nschema.set('notVersionedPaths',['safeArrayPath']);\r\n```\r\n\r\nHappy to contribute this with whatever other syntax/naming you prefer. \r\n\r\nWhat do you think? Are you interested in something like this?","created_at":"2015-01-05T18:38:50Z","updated_at":"2015-01-05T18:38:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576/commits","review_comments_url":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576/comments","review_comment_url":"https://api.github.com/repos/LearnBoost/mongoose/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LearnBoost/mongoose/issues/2576/comments","statuses_url":"https://api.github.com/repos/LearnBoost/mongoose/statuses/ad7dc8ef6a44b2b223936b2606d865eccae7aef0","head":{"label":"csabapalfi:non-versioned-paths","ref":"non-versioned-paths","sha":"ad7dc8ef6a44b2b223936b2606d865eccae7aef0","user":{"login":"csabapalfi","id":181959,"avatar_url":"https://avatars.githubusercontent.com/u/181959?v=3","gravatar_id":"","url":"https://api.github.com/users/csabapalfi","html_url":"https://github.com/csabapalfi","followers_url":"https://api.github.com/users/csabapalfi/followers","following_url":"https://api.github.com/users/csabapalfi/following{/other_user}","gists_url":"https://api.github.com/users/csabapalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/csabapalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csabapalfi/subscriptions","organizations_url":"https://api.github.com/users/csabapalfi/orgs","repos_url":"https://api.github.com/users/csabapalfi/repos","events_url":"https://api.github.com/users/csabapalfi/events{/privacy}","received_events_url":"https://api.github.com/users/csabapalfi/received_events","type":"User","site_admin":false},"repo":{"id":28825014,"name":"mongoose","full_name":"csabapalfi/mongoose","owner":{"login":"csabapalfi","id":181959,"avatar_url":"https://avatars.githubusercontent.com/u/181959?v=3","gravatar_id":"","url":"https://api.github.com/users/csabapalfi","html_url":"https://github.com/csabapalfi","followers_url":"https://api.github.com/users/csabapalfi/followers","following_url":"https://api.github.com/users/csabapalfi/following{/other_user}","gists_url":"https://api.github.com/users/csabapalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/csabapalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csabapalfi/subscriptions","organizations_url":"https://api.github.com/users/csabapalfi/orgs","repos_url":"https://api.github.com/users/csabapalfi/repos","events_url":"https://api.github.com/users/csabapalfi/events{/privacy}","received_events_url":"https://api.github.com/users/csabapalfi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csabapalfi/mongoose","description":"MongoDB object modeling designed to work in an asynchronous environment.","fork":true,"url":"https://api.github.com/repos/csabapalfi/mongoose","forks_url":"https://api.github.com/repos/csabapalfi/mongoose/forks","keys_url":"https://api.github.com/repos/csabapalfi/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csabapalfi/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csabapalfi/mongoose/teams","hooks_url":"https://api.github.com/repos/csabapalfi/mongoose/hooks","issue_events_url":"https://api.github.com/repos/csabapalfi/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/csabapalfi/mongoose/events","assignees_url":"https://api.github.com/repos/csabapalfi/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/csabapalfi/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/csabapalfi/mongoose/tags","blobs_url":"https://api.github.com/repos/csabapalfi/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csabapalfi/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csabapalfi/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/csabapalfi/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csabapalfi/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/csabapalfi/mongoose/languages","stargazers_url":"https://api.github.com/repos/csabapalfi/mongoose/stargazers","contributors_url":"https://api.github.com/repos/csabapalfi/mongoose/contributors","subscribers_url":"https://api.github.com/repos/csabapalfi/mongoose/subscribers","subscription_url":"https://api.github.com/repos/csabapalfi/mongoose/subscription","commits_url":"https://api.github.com/repos/csabapalfi/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/csabapalfi/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/csabapalfi/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/csabapalfi/mongoose/issues/comments/{number}","contents_url":"https://api.github.com/repos/csabapalfi/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/csabapalfi/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csabapalfi/mongoose/merges","archive_url":"https://api.github.com/repos/csabapalfi/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csabapalfi/mongoose/downloads","issues_url":"https://api.github.com/repos/csabapalfi/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/csabapalfi/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/csabapalfi/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/csabapalfi/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csabapalfi/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/csabapalfi/mongoose/releases{/id}","created_at":"2015-01-05T18:12:22Z","updated_at":"2015-01-05T18:12:26Z","pushed_at":"2015-01-05T18:36:19Z","git_url":"git://github.com/csabapalfi/mongoose.git","ssh_url":"git@github.com:csabapalfi/mongoose.git","clone_url":"https://github.com/csabapalfi/mongoose.git","svn_url":"https://github.com/csabapalfi/mongoose","homepage":"http://mongoosejs.com","size":33935,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"LearnBoost:master","ref":"master","sha":"f2bfdd1f5157b2382d7cbe8fdba8fad277eee80f","user":{"login":"LearnBoost","id":204174,"avatar_url":"https://avatars.githubusercontent.com/u/204174?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnBoost","html_url":"https://github.com/LearnBoost","followers_url":"https://api.github.com/users/LearnBoost/followers","following_url":"https://api.github.com/users/LearnBoost/following{/other_user}","gists_url":"https://api.github.com/users/LearnBoost/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnBoost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnBoost/subscriptions","organizations_url":"https://api.github.com/users/LearnBoost/orgs","repos_url":"https://api.github.com/users/LearnBoost/repos","events_url":"https://api.github.com/users/LearnBoost/events{/privacy}","received_events_url":"https://api.github.com/users/LearnBoost/received_events","type":"Organization","site_admin":false},"repo":{"id":597879,"name":"mongoose","full_name":"LearnBoost/mongoose","owner":{"login":"LearnBoost","id":204174,"avatar_url":"https://avatars.githubusercontent.com/u/204174?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnBoost","html_url":"https://github.com/LearnBoost","followers_url":"https://api.github.com/users/LearnBoost/followers","following_url":"https://api.github.com/users/LearnBoost/following{/other_user}","gists_url":"https://api.github.com/users/LearnBoost/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnBoost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnBoost/subscriptions","organizations_url":"https://api.github.com/users/LearnBoost/orgs","repos_url":"https://api.github.com/users/LearnBoost/repos","events_url":"https://api.github.com/users/LearnBoost/events{/privacy}","received_events_url":"https://api.github.com/users/LearnBoost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LearnBoost/mongoose","description":"MongoDB object modeling designed to work in an asynchronous environment.","fork":false,"url":"https://api.github.com/repos/LearnBoost/mongoose","forks_url":"https://api.github.com/repos/LearnBoost/mongoose/forks","keys_url":"https://api.github.com/repos/LearnBoost/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LearnBoost/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LearnBoost/mongoose/teams","hooks_url":"https://api.github.com/repos/LearnBoost/mongoose/hooks","issue_events_url":"https://api.github.com/repos/LearnBoost/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/LearnBoost/mongoose/events","assignees_url":"https://api.github.com/repos/LearnBoost/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/LearnBoost/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/LearnBoost/mongoose/tags","blobs_url":"https://api.github.com/repos/LearnBoost/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LearnBoost/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LearnBoost/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/LearnBoost/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LearnBoost/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/LearnBoost/mongoose/languages","stargazers_url":"https://api.github.com/repos/LearnBoost/mongoose/stargazers","contributors_url":"https://api.github.com/repos/LearnBoost/mongoose/contributors","subscribers_url":"https://api.github.com/repos/LearnBoost/mongoose/subscribers","subscription_url":"https://api.github.com/repos/LearnBoost/mongoose/subscription","commits_url":"https://api.github.com/repos/LearnBoost/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/LearnBoost/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/LearnBoost/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/LearnBoost/mongoose/issues/comments/{number}","contents_url":"https://api.github.com/repos/LearnBoost/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/LearnBoost/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LearnBoost/mongoose/merges","archive_url":"https://api.github.com/repos/LearnBoost/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LearnBoost/mongoose/downloads","issues_url":"https://api.github.com/repos/LearnBoost/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/LearnBoost/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/LearnBoost/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/LearnBoost/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LearnBoost/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/LearnBoost/mongoose/releases{/id}","created_at":"2010-04-06T21:39:05Z","updated_at":"2015-01-05T14:43:50Z","pushed_at":"2015-01-04T23:26:22Z","git_url":"git://github.com/LearnBoost/mongoose.git","ssh_url":"git@github.com:LearnBoost/mongoose.git","clone_url":"https://github.com/LearnBoost/mongoose.git","svn_url":"https://github.com/LearnBoost/mongoose","homepage":"http://mongoosejs.com","size":33935,"stargazers_count":6040,"watchers_count":6040,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":879,"mirror_url":null,"open_issues_count":425,"forks":879,"open_issues":425,"watchers":6040,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576"},"html":{"href":"https://github.com/LearnBoost/mongoose/pull/2576"},"issue":{"href":"https://api.github.com/repos/LearnBoost/mongoose/issues/2576"},"comments":{"href":"https://api.github.com/repos/LearnBoost/mongoose/issues/2576/comments"},"review_comments":{"href":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576/comments"},"review_comment":{"href":"https://api.github.com/repos/LearnBoost/mongoose/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LearnBoost/mongoose/pulls/2576/commits"},"statuses":{"href":"https://api.github.com/repos/LearnBoost/mongoose/statuses/ad7dc8ef6a44b2b223936b2606d865eccae7aef0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":14,"deletions":0,"changed_files":2}}