-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 #34675
Upgrade pymongo #34675
Conversation
343bc83
to
bb7d0f2
Compare
b0683c5
to
4139dea
Compare
424c152
to
42fd48e
Compare
39a0ef6
to
dd4fca6
Compare
a1305b0
to
849d7c0
Compare
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.
A couple of questions but this generally makes sense to me.
@@ -1,3 +0,0 @@ | |||
# We want to ignore files in this directory which we do in the |
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.
Why did you remove this message? It seems useful.
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.
This change is temporary to make sandbox builds successful.
Will be reverted before this pr is merged.
xmodule/contentstore/mongo.py
Outdated
@@ -142,12 +181,17 @@ def find(self, location, throw_on_not_found=True, as_stream=False): # lint-amne | |||
'thumbnail', | |||
thumbnail_location[4] | |||
) | |||
|
|||
# md5 = getattr(fp, 'md5', None) |
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.
Are these comments still needed?
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.
Not needed. Removed.
1a06f6a
to
b840069
Compare
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.
One small question, but the approach generally seems good, There are a lot of new very small functions check_connection
do_connection
, etc. They made it harder for me to read through what was happening, was there a reason for making these new functions?
requirements/edx/base.txt
Outdated
@@ -81,7 +81,7 @@ bridgekeeper==0.9 | |||
# via -r requirements/edx/kernel.in | |||
camel-converter[pydantic]==3.1.2 | |||
# via meilisearch | |||
celery==5.4.0 | |||
celery==5.3.6 |
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.
Why is celery being downgraded?
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.
@mumarkhan999 still waiting for an answer to why this happened.
These functions are needed to manage the availability of MongoDB connections. In pymongo versions >4.x.xx the reconnection functionality has been removed. |
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.
Generally looks good to me and makes sense. I just have one last question about the downgrade of the celery dependency.
requirements/edx/base.txt
Outdated
@@ -81,7 +81,7 @@ bridgekeeper==0.9 | |||
# via -r requirements/edx/kernel.in | |||
camel-converter[pydantic]==3.1.2 | |||
# via meilisearch | |||
celery==5.4.0 | |||
celery==5.3.6 |
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.
@mumarkhan999 still waiting for an answer to why this happened.
64af8db
to
b176a43
Compare
92c31ac
to
5fbc2e7
Compare
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.
Some small nits and suggestion but I think once those are addressed this can be merged. I don't need to do another round of review unless there are significant changes.
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.
Reminder to revert this change before merging.
requirements/constraints.txt
Outdated
@@ -34,7 +34,10 @@ django-simple-history==3.4.0 | |||
|
|||
# constrained in opaque_keys. migration guide here: https://pymongo.readthedocs.io/en/4.0/migrate-to-pymongo4.html |
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.
Does this comment need to be updated now?
pymongo<4.0.0 | ||
pymongo<4.4.1 | ||
|
||
# To override the constraint of edx-lint |
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.
# To override the constraint of edx-lint | |
# To override the constraint of edx-lint | |
# This can be removed once https://github.com/openedx/edx-platform/issues/34586 is resolved | |
# and the upstream constraint in edx-lint has been removed. |
5fbc2e7
to
4898249
Compare
This reverts commit cbd4904.
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
Issue Link
Description
Related PRs