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

MongoClient option validators should not change option values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Config
    • None
    • Minor Change

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: