Skip to content

Upgrade pymongo - #290

Merged
mumarkhan999 merged 1 commit into
masterfrom
umar/upgrade-pymongo
Jul 8, 2024
Merged

Upgrade pymongo#290
mumarkhan999 merged 1 commit into
masterfrom
umar/upgrade-pymongo

Conversation

@mumarkhan999

@mumarkhan999 mumarkhan999 commented Apr 26, 2024

Copy link
Copy Markdown
Contributor

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 force-pushed the umar/upgrade-pymongo branch from 9c7abc8 to f44e99e Compare June 4, 2024 13:23
@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
Comment thread 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:

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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 force-pushed the umar/upgrade-pymongo branch from 87a2d42 to 48ef9a2 Compare June 26, 2024 11:19
@mumarkhan999
mumarkhan999 merged commit 89c3836 into master Jul 8, 2024
@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