MongoClient option validators should not change option values

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Config
    • None
    • Minor Change
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      One situation this bit us is when the timeout validator converted maxIdleTimeMS into a seconds value but the code base still referred to this as max_idle_time_ms. I've renamed it internally to max_idle_time_seconds but we should think about modifying the option validator to never change the value of the option.

      This would also give users the ability to pass validated options into the MongoClient constructor, see PYTHON-1334.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: