You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pymongo 4.0 was released with some breaking changes and since our requirement for this package is not pinned (comes from strax) this is causing tests to fail.
So far I found two issues that need fixing to adapt to the new version:
Cursor no longer has the .count() method, needs to be replaced with collection.count_documents(query)
GridFS no longer computes the md5 hash for you. We need to add this ourselves.
Looks like default readPreference is now Primary, since our primary is not accessible from everywhere this causes server selection timeout in tests. When using utilix to get the client this is not an issue since utilix sets the readPreference explicitly (thanks to @ershockley s superior attention to details)
There may be others. will add them here as I find them.
The text was updated successfully, but these errors were encountered:
pymongo 4.0 was released with some breaking changes and since our requirement for this package is not pinned (comes from strax) this is causing tests to fail.
So far I found two issues that need fixing to adapt to the new version:
There may be others. will add them here as I find them.
The text was updated successfully, but these errors were encountered: