[GODRIVER-350] Change OptWriteConcern to directly wrap a writeconcern.WriteConcern Created: 05/Apr/18  Updated: 28/Oct/23  Resolved: 29/Jun/18

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 0.0.2
Fix Version/s: 0.0.9

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-444 Design : Options Management Closed
depends on GODRIVER-272 Implement redesigned options for the ... Closed
depends on GODRIVER-337 Allow option.Optioner to return an error Closed
Epic Link: Options Management

 Description   

Currently we place the writeconcern passed to some dispatch commands, like Aggregate, as a parameter so we can control if we actually send it. We wind up having to iterate through the options slice to determine if we need to apply our own write concern or a user's write concern.

Once the work in GODRIVER-272 and GODRIVER-337 is complete we can have the option stacks for the collection methods extract the write concern and pass it directly as the parameter for a dispatch function.



 Comments   
Comment by Githook User [ 29/Jun/18 ]

Author:

{'username': 'skriptble', 'name': 'Kris Brandow', 'email': 'kris@mongodb.com'}

Message: Merge branch 'pr/74'

GODRIVER-157
GODRIVER-272
GODRIVER-335
GODRIVER-356
GODRIVER-350
GODRIVER-450

Change-Id: I713dc0fba4bbdee2445349262ea653d101e1299c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5fea1444e52844a15513c0d9490327b2bd89ed7c

Comment by Roland Fong [ 25/Jun/18 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/416007

Generated at Thu Feb 08 08:34:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.