[CXX-1250] mongocxx implementation should use bsoncxx's basic builder instead of stream builder Created: 10/Mar/17  Updated: 27/Feb/18  Resolved: 18/Jul/17

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

Type: Task Priority: Major - P3
Reporter: J Rassi Assignee: Patrick Freed
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1152 Context enforcement for BSON stream b... Closed

 Description   

The stream builder is difficult to use when it is mutated across multiple statements, and we would like to issue enable warnings when it is used in an unsafe manner (CXX-1152). To address mongocxx's current non-compliant uses of the stream builder (necessary in order to enable these warnings) and to set a good example for users, we should just replace its use of the stream builder with the basic builder, using the recently-added make_document() and make_array() helpers where appropriate.



 Comments   
Comment by Githook User [ 24/Jul/17 ]

Author:

{u'username': u'patrickfreed', u'name': u'Patrick Freed', u'email': u'fridpatrick@gmail.com'}

Message: CXX-1250 Replace stream builder usages with basic builder in mongocxx tests.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/4252ec87640cdbc164942dbef5c91f271ecc63e8

Comment by Samuel Rossi (Inactive) [ 04/Apr/17 ]

bbc0d6 makes the required changes in the examples, the bsoncxx library and tests, and the mongocxx library. Given that we've decided to deprioritize making the required changes to the mongocxx tests, I've changed the fix version to reflect this and taken the ticket out of the current sprint.

Comment by Githook User [ 04/Apr/17 ]

Author:

{u'username': u'saghm', u'name': u'Saghm Rossi', u'email': u'saghmrossi@gmail.com'}

Message: CXX-1250 convert use of stream builder to basic builder in examples, bsoncxx library and tests, and mongocxx library
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/bbc0d639b26b82364759710e0f68a733ec1b74c7

Generated at Wed Feb 07 22:01:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.