[GODRIVER-2962] Remove all operation field setters in the "x/mongo/driver/operation" package Created: 28/Aug/23  Updated: 07/Nov/23

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are currently 1,000+ lines of code in the x/mongo/driver/operation package strictly for setting fields on operation structs. That code provides no increase in usability but is a maintenance burden whenever we need to update operations. We should remove all setters on operation structs and define operations as struct literals instead.

Definition of done:

  • Remove all field setters from the operation types in the x/mongo/driver/operation package.
  • Mark all field setters as deprecated in the v1 branch.

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