Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2962

Remove the "x/mongo/driver/operation" package

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      There are currently 1,000+ lines of code in the x/mongo/driver/operation package that are mostly for setting fields on operation structs and passing through fields to the driver.Operation struct. That code provides no increase in usability but is a maintenance burden whenever we need to update operations. We should remove the x/mongo/driver/operation package and move the command document creation and result document decode logic into the mongo package instead.

      Definition of done:

      • Removing the x/mongo/driver/operation package. Move the command document creation and result document decode logic to the mongo package.
      • (Optional) Consider marking all field setters as deprecated in the v1 branch.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: