[GODRIVER-294] Add builder for index management options Created: 21/Mar/18  Updated: 28/Oct/23  Resolved: 08/Jun/18

Status: Closed
Project: Go Driver
Component/s: Administrative Commands
Affects Version/s: 0.0.2
Fix Version/s: 0.0.7

Type: New Feature Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Roland Fong
Resolution: Fixed Votes: 0
Labels: Stitch, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-444 Design : Options Management Closed
Epic Link: Options Management

 Description   

After some feedback from users, having the options for an IndexModel be a *bson.Document is difficult to work with. Implement a IndexOptionsBuilder that has helper methods for each IndexModel option and also implements a bson.Marshaler.



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

Author:

{'username': 'rfblue2', 'name': 'Roland Fong', 'email': 'rfblue2@gmail.com'}

Message: Add IndexOptionsBuilder

GODRIVER-294

Change-Id: Iaee40b1c2e87e87ed14b09ac6e3511c2a7189f25
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/74a0e9321e7301b657c1d54c84a38bfc58d22aa4

Comment by Roland Fong [ 07/Jun/18 ]

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

Comment by Kristofer Brandow (Inactive) [ 21/Mar/18 ]

Possibly eric.daniels also brought up needing a more compact, bson.D like way of building documents. I think we should prioritize GODRIVER-200. Depending on how that design comes out, I think we could use it for this as well.

Comment by David Golden [ 21/Mar/18 ]

Would this also be addressed with a better API for document building, e.g. GODRIVER-200? If so, then maybe we should prioritize that as it addresses many pain points at once.

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