-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pymongo #290
Upgrade pymongo #290
Conversation
218b310
to
9c7abc8
Compare
9c7abc8
to
f44e99e
Compare
68c18cf
to
5651572
Compare
eventtracking/backends/mongodb.py
Outdated
self.collection.ensure_index([('time', pymongo.DESCENDING)]) | ||
self.collection.ensure_index('name') | ||
# TODO: Remove pymongo3 backward compatibility code once pymongo4 upgrade is done | ||
if pymongo.version_tuple[0] == 3: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Add simple test to make sure its getting the right things depending on versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added a pin for pymongo version >=4.0.0
pymongo pin
now the legacy code is no longer needed.
a384867
to
87a2d42
Compare
87a2d42
to
48ef9a2
Compare
…ster `event-tracking` which is on of this package dependencies, created a new version (openedx/event-tracking#290) which upgraded the pymongo version. So when we install this package the old style, we will get the latest event-tracking version with pymongo 4.4.0 which is incompatible with openedx open-release/quince.master. See issue openedx/tutor-contrib-aspects#891 fix-event-tracking_quince_clutter
`event-tracking` which is on of this package dependencies, created a new version (openedx/event-tracking#290) which upgraded the pymongo version. So when we install this package the old style, we will get the latest event-tracking version with pymongo 4.4.0 which is incompatible with openedx master. See issue openedx/tutor-contrib-aspects#891
`event-tracking` which is on of this package dependencies, created a new version (openedx/event-tracking#290) which upgraded the pymongo version. So when we install this package the old style, we will get the latest event-tracking version with pymongo 4.4.0 which is incompatible with openedx master. See issue openedx/tutor-contrib-aspects#891
`event-tracking` which is on of this package dependencies, created a new version (openedx/event-tracking#290) which upgraded the pymongo version. So when we install this package the old style, we will get the latest event-tracking version with pymongo 4.4.0 which is incompatible with openedx master. See issue openedx/tutor-contrib-aspects#891
Upgrading pymongo version in this PR.
There are some breaking changes in
4.4.0
version of pymongohttps://pymongo.readthedocs.io/en/4.4.0/changelog.html#breaking-changes-in-4-0
which have been fixed in this PR.