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

Add guard to synchro hook to accidental overwrite

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • 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?

      Context

      Currently, if you update code in a synchronous folder and then try to commit it, it will get overwritten by the synchro hook.  We can avoid this by checking to see if the async file is "clean", and then if the synchronous file would change contents.  We can allow passing an environment variable to override if it is a false positive.

      Definition of done

      Syncro hook and contribution guide are updated.

      Pitfalls

      None

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: