[CXX-689] Support bypassDocumentValidation Created: 30/Sep/15  Updated: 06/Dec/15  Resolved: 28/Oct/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-1.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-250 Support bypassDocumentValidation Closed
Epic Link: Legacy C++ Driver MongoDB 3.2

 Comments   
Comment by Githook User [ 06/Dec/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: CXX-689 Assert bypassDocumentValidation is not used with unacknowledged writes
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/cf96488e9739fcc6a4b74d2343545192589832a1

Comment by Githook User [ 06/Dec/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: CXX-689: Support bypassDocumentValidation
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/db0b8fa466fcbff2d3c220f4fbd6a3da47822c76

Comment by Mark Benvenuto [ 28/Oct/15 ]

https://github.com/mongodb/mongo-cxx-driver/commit/cf96488e9739fcc6a4b74d2343545192589832a1

Comment by Mark Benvenuto [ 23/Oct/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/352

Comment by Mark Benvenuto [ 23/Oct/15 ]

https://github.com/mongodb/mongo-cxx-driver/commit/db0b8fa466fcbff2d3c220f4fbd6a3da47822c76

Comment by Mark Benvenuto [ 21/Oct/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/349

Comment by Mark Benvenuto [ 16/Oct/15 ]

Per the writeup, we need to add bypassDocumentValidation as a field or parameter to the following:

Category Work Required Notes
AggregateOptions:only for $out No aggregation() takes aggregationOptions which is just a BSON document
InsertOneOptions:This is a new class, now with a single field. Yes DBClientBase::insert
InsertManyOptions Yes DBClientBase::insert
UpdateOptions Yes DClient::update
BulkWriteOptions Yes bulk_operation_builder.h:BulkOperationBuilder
FindOneAndReplaceOptions ? I could not figure out which method this maps to
FindOneAndUpdateOptions Yes DBClientWithCommands::findAndModify

Using the new option requires the BypassDocumentValidation permission which is granted to the built-in roles 'restore' and 'dbadmin'. Other commands that have been updated, but not specified in the CRUD spec are:

Category Work Required Notes
applyOps No No method
clone No No method
cloneCollection No No method
copyDb Yes DBClientWithCommands::copyDatabase
mapReduce Yes DBClientWithCommands::mapreduce
Generated at Wed Feb 07 21:59:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.