Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3784

Expose disabling utf-8 validation option for users

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3.0
    • Affects Version/s: None
    • Component/s: None
    • Needed

      Description

      Allow users to disable all keys (not individual ones) by introducing a new option in the driver in order to improve performance by skipping undesired validation. 

      See design doc.

      Acceptance criteria

      • The new option disableUtf8Validation (To be confirmed) should be able to be set to true, with the default being false.
      • When set to true, this option should be interpreted by the driver as needing to pass { validation: { utf8: false }} to the BSON deserializer function when reading a server response
      • Tests should be added to:
        • Ensure that inputs to disableUtf8Validation are valid (T/F)
        • Ensure that the correct BSON option ({ validation: { utf8: false }}) is being passed into deserializer as a result of this option
        • Ensure that all keys have utf8 disabled 
        • Ensure that when no option is provided, existing functionality is not affected. 

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            grace.chong@mongodb.com Grace Chong (Inactive)
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: