Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1484

MongoClient option validators should not change option values

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Config
    • None
    • Minor Change

      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 Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: