Skip to content
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

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Upgrade pymongo #290

merged 1 commit into from
Jul 8, 2024

Conversation

mumarkhan999
Copy link
Member

@mumarkhan999 mumarkhan999 commented Apr 26, 2024

Upgrading pymongo version in this PR.

There are some breaking changes in 4.4.0 version of pymongo
https://pymongo.readthedocs.io/en/4.4.0/changelog.html#breaking-changes-in-4-0
which have been fixed in this PR.

@mumarkhan999 mumarkhan999 force-pushed the umar/upgrade-pymongo branch 3 times, most recently from 218b310 to 9c7abc8 Compare April 26, 2024 13:09
@mumarkhan999 mumarkhan999 reopened this Jun 4, 2024
@mumarkhan999 mumarkhan999 force-pushed the umar/upgrade-pymongo branch 3 times, most recently from 68c18cf to 5651572 Compare June 4, 2024 13:53
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:
Copy link
Contributor

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

Copy link
Member Author

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.

@mumarkhan999 mumarkhan999 force-pushed the umar/upgrade-pymongo branch 3 times, most recently from a384867 to 87a2d42 Compare June 26, 2024 11:14
@mumarkhan999 mumarkhan999 merged commit 89c3836 into master Jul 8, 2024
4 checks passed
@mumarkhan999 mumarkhan999 deleted the umar/upgrade-pymongo branch July 8, 2024 10:39
vahid75 added a commit to vahid75/event-routing-backends that referenced this pull request Jul 9, 2024
…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
vahid75 added a commit to vahid75/event-routing-backends that referenced this pull request Jul 9, 2024
`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
vahid75 added a commit to vahid75/event-routing-backends that referenced this pull request Jul 9, 2024
`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
vahid75 added a commit to vahid75/event-routing-backends that referenced this pull request Jul 21, 2024
`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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants