Priority: Major - P3
Affects Version/s: None
Fix Version/s: 3.11
We should stop raising DeprecationWarning when no UuidRepresentation has been specified by the user.
Note that a similar warning will be added back to PyMongo 3.12 as part of
PYTHON-2309 to aid users in transitioning from PyMongo 3.x to PyMongo 4.x.
We should improve the uuidRepresentation deprecation warnings added in
PYTHON-2152. For example, this should raise a warning but doesn’t:
Same for bson.decode(), and json_util.loads/dumps when encoding/decoding UUIDs with the default options.
Another area to improve is that creating a MongoClient seems to cause a warning to be created but it’s attributed to codec_options.py. It’ll be hard for users to diagnose this warning:
Instead the DeprecationWarning should point to line where the MongoClient was created.