Remove the operation.Command type

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      The operation.Command type is not actually an operation, but is a thin wrapper for running any command. Remove it completely, replacing it with direct uses of driver.Operation or shared private functions.

      Definition of done

      • Remove the "operation.Command" type completely.
        • Delete "x/mongo/driver/operation/command.go"
      • Refactor processRunCommand to use the driver.Operation type directly.
      • Add an unexported "run command" function to the "x/mongo/driver/auth" package.
      • Add an unexported "run command" function to the "x/mongo/driver/integration" package.
      • Use driver.Operation directly in functions in the "internal/integtest" package.

      Pitfalls

      What should the implementer watch out for? What are the risks?

            Assignee:
            Matt Dale
            Reporter:
            Matt Dale
            Qingyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: