-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: pymongocrypt
-
None
-
Python Drivers
-
Not Needed
-
Context
The pymongocrypt changes in PYTHON-4206 break CSFLE rangePreview support on pymongo < 4.8. For example:
$ git checkout 4.7.3
$ TEST_ENCRYPTION=1 tox -e test-eg -- -k range
...
FAILED test/test_encryption.py::TestSpec::test_legacy_fle2v2_Range_Date_Aggregate_FLE2_Range_Date__Aggregate_ - pymongo.errors.EncryptionError: Error parsing FLE2RangeInsertSpec: Missing field 'trimFactor' in placeholder
Definition of done
We should maintain compatibility by making the range changes opt-in. If that's not possible, we should bump the pymongocrypt version to 2.0 to avoid breaking existing pymongo apps.