{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/comments/232387466","pull_request_review_id":173582835,"id":232387466,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjM4NzQ2Ng==","diff_hunk":"@@ -203,6 +204,16 @@ function Cursor(bson, ns, cmd, options, topology, topologyOptions) {\n // Inherit from Readable\n inherits(Cursor, Readable);\n \n+Object.defineProperty(Cursor.prototype, 'optionsValidationLevel', {\n+  enumerable: true,\n+  get: function() {\n+    if (this.s && this.s.options && this.s.options.optionsValidationLevel) {\n+      return this.s.options.optionsValidationLevel;\n+    }\n+    return 'error';","path":"lib/cursor.js","position":null,"original_position":18,"commit_id":"5404f04de7b86172ebbac6484fee1873514ae235","original_commit_id":"e2a9a57b416fe4a48725fcefe581b949844e2f40","user":{"login":"daprahamian","id":7957497,"node_id":"MDQ6VXNlcjc5NTc0OTc=","avatar_url":"https://avatars3.githubusercontent.com/u/7957497?v=4","gravatar_id":"","url":"https://api.github.com/users/daprahamian","html_url":"https://github.com/daprahamian","followers_url":"https://api.github.com/users/daprahamian/followers","following_url":"https://api.github.com/users/daprahamian/following{/other_user}","gists_url":"https://api.github.com/users/daprahamian/gists{/gist_id}","starred_url":"https://api.github.com/users/daprahamian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daprahamian/subscriptions","organizations_url":"https://api.github.com/users/daprahamian/orgs","repos_url":"https://api.github.com/users/daprahamian/repos","events_url":"https://api.github.com/users/daprahamian/events{/privacy}","received_events_url":"https://api.github.com/users/daprahamian/received_events","type":"User","site_admin":false},"body":"Yeah, this is going to be a problem b/c we don't have an easy way of getting the client info to the cursor. But adding options management without the ability to configure it for a certain class will probably be frustrating to users.","created_at":"2018-11-09T20:41:27Z","updated_at":"2018-11-09T20:41:27Z","html_url":"https://github.com/mongodb/node-mongodb-native/pull/1865#discussion_r232387466","pull_request_url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/comments/232387466"},"html":{"href":"https://github.com/mongodb/node-mongodb-native/pull/1865#discussion_r232387466"},"pull_request":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865"}},"in_reply_to_id":232383784},"pull_request":{"url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865","id":229807283,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5ODA3Mjgz","html_url":"https://github.com/mongodb/node-mongodb-native/pull/1865","diff_url":"https://github.com/mongodb/node-mongodb-native/pull/1865.diff","patch_url":"https://github.com/mongodb/node-mongodb-native/pull/1865.patch","issue_url":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/1865","number":1865,"state":"open","locked":false,"title":"feat(lib): add options validation to mongo_client, admin, and cursor","user":{"login":"kvwalker","id":7121013,"node_id":"MDQ6VXNlcjcxMjEwMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7121013?v=4","gravatar_id":"","url":"https://api.github.com/users/kvwalker","html_url":"https://github.com/kvwalker","followers_url":"https://api.github.com/users/kvwalker/followers","following_url":"https://api.github.com/users/kvwalker/following{/other_user}","gists_url":"https://api.github.com/users/kvwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/kvwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvwalker/subscriptions","organizations_url":"https://api.github.com/users/kvwalker/orgs","repos_url":"https://api.github.com/users/kvwalker/repos","events_url":"https://api.github.com/users/kvwalker/events{/privacy}","received_events_url":"https://api.github.com/users/kvwalker/received_events","type":"User","site_admin":false},"body":"Fixes NODE-1671","created_at":"2018-11-09T20:15:03Z","updated_at":"2018-11-09T20:41:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"422cfcb9becbf95b05e0e4d4c8f9e2d5ee85eb19","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mbroadst","id":312966,"node_id":"MDQ6VXNlcjMxMjk2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/312966?v=4","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865/commits","review_comments_url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865/comments","review_comment_url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/1865/comments","statuses_url":"https://api.github.com/repos/mongodb/node-mongodb-native/statuses/5404f04de7b86172ebbac6484fee1873514ae235","head":{"label":"kvwalker:other-options-validation","ref":"other-options-validation","sha":"5404f04de7b86172ebbac6484fee1873514ae235","user":{"login":"kvwalker","id":7121013,"node_id":"MDQ6VXNlcjcxMjEwMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7121013?v=4","gravatar_id":"","url":"https://api.github.com/users/kvwalker","html_url":"https://github.com/kvwalker","followers_url":"https://api.github.com/users/kvwalker/followers","following_url":"https://api.github.com/users/kvwalker/following{/other_user}","gists_url":"https://api.github.com/users/kvwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/kvwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvwalker/subscriptions","organizations_url":"https://api.github.com/users/kvwalker/orgs","repos_url":"https://api.github.com/users/kvwalker/repos","events_url":"https://api.github.com/users/kvwalker/events{/privacy}","received_events_url":"https://api.github.com/users/kvwalker/received_events","type":"User","site_admin":false},"repo":{"id":133556011,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM1NTYwMTE=","name":"node-mongodb-native","full_name":"kvwalker/node-mongodb-native","private":false,"owner":{"login":"kvwalker","id":7121013,"node_id":"MDQ6VXNlcjcxMjEwMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7121013?v=4","gravatar_id":"","url":"https://api.github.com/users/kvwalker","html_url":"https://github.com/kvwalker","followers_url":"https://api.github.com/users/kvwalker/followers","following_url":"https://api.github.com/users/kvwalker/following{/other_user}","gists_url":"https://api.github.com/users/kvwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/kvwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvwalker/subscriptions","organizations_url":"https://api.github.com/users/kvwalker/orgs","repos_url":"https://api.github.com/users/kvwalker/repos","events_url":"https://api.github.com/users/kvwalker/events{/privacy}","received_events_url":"https://api.github.com/users/kvwalker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kvwalker/node-mongodb-native","description":"Mongo DB Native NodeJS Driver","fork":true,"url":"https://api.github.com/repos/kvwalker/node-mongodb-native","forks_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/forks","keys_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/teams","hooks_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/hooks","issue_events_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/issues/events{/number}","events_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/events","assignees_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/assignees{/user}","branches_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/branches{/branch}","tags_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/tags","blobs_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/statuses/{sha}","languages_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/languages","stargazers_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/stargazers","contributors_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/contributors","subscribers_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/subscribers","subscription_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/subscription","commits_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/contents/{+path}","compare_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/merges","archive_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/downloads","issues_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/issues{/number}","pulls_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/pulls{/number}","milestones_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/milestones{/number}","notifications_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/labels{/name}","releases_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/releases{/id}","deployments_url":"https://api.github.com/repos/kvwalker/node-mongodb-native/deployments","created_at":"2018-05-15T18:19:17Z","updated_at":"2018-11-06T16:08:28Z","pushed_at":"2018-11-09T20:36:48Z","git_url":"git://github.com/kvwalker/node-mongodb-native.git","ssh_url":"git@github.com:kvwalker/node-mongodb-native.git","clone_url":"https://github.com/kvwalker/node-mongodb-native.git","svn_url":"https://github.com/kvwalker/node-mongodb-native","homepage":"http://mongodb.github.com/node-mongodb-native/","size":88636,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:next","ref":"next","sha":"ba484f02e590abc37734bb1dd926a29709497687","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","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":462292,"node_id":"MDEwOlJlcG9zaXRvcnk0NjIyOTI=","name":"node-mongodb-native","full_name":"mongodb/node-mongodb-native","private":false,"owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","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},"html_url":"https://github.com/mongodb/node-mongodb-native","description":"Mongo DB Native NodeJS Driver","fork":false,"url":"https://api.github.com/repos/mongodb/node-mongodb-native","forks_url":"https://api.github.com/repos/mongodb/node-mongodb-native/forks","keys_url":"https://api.github.com/repos/mongodb/node-mongodb-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/node-mongodb-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/node-mongodb-native/teams","hooks_url":"https://api.github.com/repos/mongodb/node-mongodb-native/hooks","issue_events_url":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/node-mongodb-native/events","assignees_url":"https://api.github.com/repos/mongodb/node-mongodb-native/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/node-mongodb-native/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/node-mongodb-native/tags","blobs_url":"https://api.github.com/repos/mongodb/node-mongodb-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/node-mongodb-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/node-mongodb-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/node-mongodb-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/node-mongodb-native/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/node-mongodb-native/languages","stargazers_url":"https://api.github.com/repos/mongodb/node-mongodb-native/stargazers","contributors_url":"https://api.github.com/repos/mongodb/node-mongodb-native/contributors","subscribers_url":"https://api.github.com/repos/mongodb/node-mongodb-native/subscribers","subscription_url":"https://api.github.com/repos/mongodb/node-mongodb-native/subscription","commits_url":"https://api.github.com/repos/mongodb/node-mongodb-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/node-mongodb-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/node-mongodb-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/node-mongodb-native/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/node-mongodb-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/node-mongodb-native/merges","archive_url":"https://api.github.com/repos/mongodb/node-mongodb-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/node-mongodb-native/downloads","issues_url":"https://api.github.com/repos/mongodb/node-mongodb-native/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/node-mongodb-native/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/node-mongodb-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/node-mongodb-native/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/node-mongodb-native/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/node-mongodb-native/deployments","created_at":"2010-01-07T12:50:50Z","updated_at":"2018-11-09T15:46:48Z","pushed_at":"2018-11-09T20:36:49Z","git_url":"git://github.com/mongodb/node-mongodb-native.git","ssh_url":"git@github.com:mongodb/node-mongodb-native.git","clone_url":"https://github.com/mongodb/node-mongodb-native.git","svn_url":"https://github.com/mongodb/node-mongodb-native","homepage":"http://mongodb.github.com/node-mongodb-native/","size":92015,"stargazers_count":7403,"watchers_count":7403,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1384,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1384,"open_issues":17,"watchers":7403,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865"},"html":{"href":"https://github.com/mongodb/node-mongodb-native/pull/1865"},"issue":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/1865"},"comments":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/issues/1865/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/pulls/1865/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/node-mongodb-native/statuses/5404f04de7b86172ebbac6484fee1873514ae235"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"daprahamian"}}