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

    • Type: Epic
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Remove ops package
    • Go Drivers
    • Not Needed
    • Hide
      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?
      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • Done
    • 3.75
    • 3
    • 3
    • 100
    • -20
    • 🔵 Done
    • Hide

      Engineer(s): Matt Dale

      What was accomplished since the last update?
      We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far.

      What's the focus over the next two weeks?
      Refactor at least another 10 command types.

      Any risks/blockers/impediments?
      None.

      Anything else to share?
       -


      Show
      Engineer(s): Matt Dale What was accomplished since the last update? We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far. What's the focus over the next two weeks? Refactor at least another 10 command types. Any risks/blockers/impediments? None. Anything else to share?  -
    • Hide

      2026-08-05 - 🔵 Done
      Engineer(s): Matt Dale

      What was accomplished since the last update?
      We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far.

      What's the focus over the next two weeks?
      Refactor at least another 10 command types.

      Any risks/blockers/impediments?
      None.

      Anything else to share?
       -



      2026-08-01 - 🔵 Done
      Engineer(s): Matt Dale

      What was accomplished since the last update?
      We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far.

      What's the focus over the next two weeks?
      Refactor at least another 10 command types.

      Any risks/blockers/impediments?
      None.

      Anything else to share?
       -



      2026-07-06 - 🟢 On Track
      Started Jul 6


      Show
      2026-08-05 - 🔵 Done Engineer(s): Matt Dale What was accomplished since the last update? We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far. What's the focus over the next two weeks? Refactor at least another 10 command types. Any risks/blockers/impediments? None. Anything else to share?  - 2026-08-01 - 🔵 Done Engineer(s): Matt Dale What was accomplished since the last update? We refactored 10 (7 done, 3 in review) out of 23 command types and removed one redundant wrapper type. We removed 1,500 lines of unnecessary code and caught 2 existing command logic bugs so far. What's the focus over the next two weeks? Refactor at least another 10 command types. Any risks/blockers/impediments? None. Anything else to share?  - 2026-07-06 - 🟢 On Track Started Jul 6
    • None
    • None
    • None
    • None
    • None
    • 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:
            Matt Dale
            Reporter:
            Matt Dale
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 weeks, 4 days
              None
              None

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 weeks
                3w