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

Remove all operation field setters in the "x/mongo/driver/operation" package

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • 2.0.0
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: