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

Make "Comment" field type "any" on all options structs and setters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      Update reference to SetComment to be valid for a string or document. I.e. this:

      • - ``SetComment()``
      • An arbitrary string to help trace the operation through the database profiler, currentOp and logs.
        Default: ``""``

      should be this:

      {qoute}
      • - ``SetComment()``
      • An arbitrary string or document to help trace the operation through the database profiler, currentOp and logs.
        Default: ``""``

        2. Would you like the user to see examples of the syntax and/or executable code and its output?

      Only if they currently exist in documentation.

      3. Which versions of the driver/connector does this apply to?
      v2

      Show
      1. What would you like to communicate to the user about this feature? Update reference to SetComment to be valid for a string or document. I.e. this: - ``SetComment()`` An arbitrary string to help trace the operation through the database profiler, currentOp and logs. Default: ``""`` should be this: {qoute} - ``SetComment()`` An arbitrary string or document to help trace the operation through the database profiler, currentOp and logs. Default: ``""`` 2. Would you like the user to see examples of the syntax and/or executable code and its output? Only if they currently exist in documentation. 3. Which versions of the driver/connector does this apply to? v2

      The Comment field on most options structs is an interface. However, on a few structs, Comment is a string because that type was required in an earlier form of the specification. Update all Comment fields and corresponding SetComment setters to be type any.

      Definition of done:

      • The Comment field on all options structs is type any.
      • The argument to SetComment on all options structs is type any.

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

              Created:
              Updated:
              Resolved: