Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

[SE-1927, SE-1986] Upgrade pymongo and fix issues #14

Open
wants to merge 123 commits into
base: opencraft-release/ginkgo.2-campus
Choose a base branch
from

Conversation

pkulkark
Copy link

@pkulkark pkulkark commented Dec 5, 2019

This commit upgrades the version of pymongo from 2.x to 3.x, removing usages to deprecated functions usage and fixing tests where necessary.

This version of pymongo supports MongoDB 2.x all the way up to 4.2, and this ensures that the platform will be able to run on a supported MongoDB version in the next release.

(cherry picked from commit 9b69d5a62684dc3d9d86b7e71081bebd432bd7d9)

giovannicimolin and others added 2 commits December 5, 2019 20:56
This commit upgrades the version of pymongo from 2.x to 3.x, removing usages to deprecated functions usage and fixing tests where necessary.

This version of pymongo supports MongoDB 2.x all the way up to 4.2, and this ensures that the platform will be able to run on a supported MongoDB version in the next release.

(cherry picked from commit 9b69d5a62684dc3d9d86b7e71081bebd432bd7d9)
Copy link

@itsjeyd itsjeyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkulkark Thanks for reopening the previous PR on this fork :) The cherry-pick looks good. There's a bunch of failing tests -- not sure if (or to what extent) those are related to the changes being introduced here? I think we've run into issues getting tests to pass on this fork before. To get clarity maybe you could open another PR with some sort of trivial change and see how CircleCI builds behave there?

In any case, deploying the changes to stage for testing should be fine. Please see the comment that I will post shortly on SE-1927, though, for an additional note about coordinating pending stage deployments with @swalladge :)

@pkulkark pkulkark force-pushed the pooja/cherry-pick-pymongo-upgrade branch 6 times, most recently from 09c6280 to 5198291 Compare December 13, 2019 03:07
Copy link

@itsjeyd itsjeyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkulkark Thanks for the additional changes! They look good, I just had one question about an in-line comment that we might not need.

count = items.count()
assets = list(items)
result = self.fs_files.find(query, **find_args)
# Set values if result of query is empty
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkulkark Is this comment still needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops missed it. thanks for catching it! I've removed it.

@pkulkark pkulkark force-pushed the pooja/cherry-pick-pymongo-upgrade branch from 5198291 to 09205e7 Compare December 15, 2019 08:18
@pkulkark pkulkark force-pushed the pooja/cherry-pick-pymongo-upgrade branch from 09205e7 to 9d892bf Compare December 16, 2019 05:12
@pkulkark pkulkark force-pushed the pooja/cherry-pick-pymongo-upgrade branch 2 times, most recently from a074da5 to 97802b4 Compare December 30, 2019 08:59
@pkulkark pkulkark force-pushed the pooja/cherry-pick-pymongo-upgrade branch from 97802b4 to 1e56121 Compare December 30, 2019 12:14
@itsjeyd
Copy link

itsjeyd commented Feb 14, 2020

Notes for upcoming deployments:

  • 1e56121 ("Update MongoDBProxy version.") is the only commit that's present on stage but hasn't been deployed to prod.
  • 9d892bf ("revert cursor.next", commit preceding 1e56121 on stage) and 09c62808aeef7891ab826fd6d954faf95e710093 ("Add try-catch block to handle stopiteration", latest commit on prod) are functionally equivalent. 9d892bf is the newer version of 09c62808aeef7891ab826fd6d954faf95e710093 and does two more things than 09c62808aeef7891ab826fd6d954faf95e710093:

Other than that there are no differences between the versions of edx-platform code that the edxapp and worker clusters are running on stage/prod.

[SE-2326] Merge pull request openedx#23102 from edx/patch-ironwood-capa-problem
@itsjeyd itsjeyd changed the title Upgrade pymongo and fix issues [SE-1927, SE-1986] Upgrade pymongo and fix issues Mar 17, 2020
vladimirCampusGovIl and others added 30 commits March 8, 2022 09:10
fix: [CAM2-762] notification texts updated, dates updated.
chore: [translations] added change to he po file.
fix: [CAM2-762] added changes to popup configuration.
fix: [CAM2-762] added changes to popup configuration.
…date-text

fix: [CAM2-762] added changes to popup notification text.
…e only in case of notification 'hide' button was pressed.
…date-text

fix: [CAM2-762] added changes to popup notification url inside the text.
…up-lms

feat: [CAM2-943] added notification popup to each page of lms.
fix: [CAM2-943] added changes to css notification popup to each page of lms
feat: [CAM2-875] added custom maintenance page.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.