Skip to content

Commit

Permalink
chore: unpin pymongo
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Jun 27, 2022
1 parent bc5b34e commit 719f111
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 9 deletions.
11 changes: 11 additions & 0 deletions cms/envs/devstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,17 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing

OPENAPI_CACHE_TIMEOUT = 0

#####################################################################
# set replica set of contentstore to none as we haven't setup any for cms in devstack
CONTENTSTORE['DOC_STORE_CONFIG']['replicaSet'] = None

#####################################################################
# set replica sets of moduelstore to none as we haven't setup any for cms in devstack
for store in MODULESTORE['default']['OPTIONS']['stores']:
if 'DOC_STORE_CONFIG' in store and 'replicaSet' in store['DOC_STORE_CONFIG']:
store['DOC_STORE_CONFIG']['replicaSet'] = None


#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE = convert_module_store_setting_if_needed(MODULESTORE)
Expand Down
12 changes: 12 additions & 0 deletions lms/envs/devstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,22 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing

OPENAPI_CACHE_TIMEOUT = 0

#####################################################################
# set replica set of contentstore to none as we haven't setup any for lms in devstack
CONTENTSTORE['DOC_STORE_CONFIG']['replicaSet'] = None

#####################################################################
# set replica sets of moduelstore to none as we haven't setup any for lms in devstack
for store in MODULESTORE['default']['OPTIONS']['stores']:
if 'DOC_STORE_CONFIG' in store and 'replicaSet' in store['DOC_STORE_CONFIG']:
store['DOC_STORE_CONFIG']['replicaSet'] = None


#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE = convert_module_store_setting_if_needed(MODULESTORE)


SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd'

EDXNOTES_INTERNAL_API = 'http://edx.devstack.edxnotesapi:18120/api/v1'
Expand Down
5 changes: 3 additions & 2 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ matplotlib<3.4.0
# Constraint from astroid 2.3.3
wrapt==1.11.*

# tests failing for pymongo==3.11
pymongo<3.11
# constrained in opaque_keys. migration guide here: https://pymongo.readthedocs.io/en/4.0/migrate-to-pymongo4.html
# Major upgrade will be done in separate ticket.
pymongo<4.0.0

# sympy latest version causing test failures.
# may be related to python35 version drop in 1.7.0. Needs to be tested before removing.
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,8 @@ pylatexenc==2.10
# via olxcleaner
pylti1p3==1.10.0
# via -r requirements/edx/base.in
pymongo==3.10.1
pymongo==3.12.3
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.in
# -r requirements/edx/paver.txt
# edx-opaque-keys
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1139,9 +1139,8 @@ pylint-pytest==0.3.0
# via -r requirements/edx/testing.txt
pylti1p3==1.10.0
# via -r requirements/edx/testing.txt
pymongo==3.10.1
pymongo==3.12.3
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/testing.txt
# edx-opaque-keys
# event-tracking
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/paver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pbr==5.8.1
# via stevedore
psutil==5.9.0
# via -r requirements/edx/paver.in
pymongo==3.10.1
pymongo==3.12.3
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/paver.in
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1068,9 +1068,8 @@ pylint-pytest==0.3.0
# via -r requirements/edx/testing.in
pylti1p3==1.10.0
# via -r requirements/edx/base.txt
pymongo==3.10.1
pymongo==3.12.3
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
# edx-opaque-keys
# event-tracking
Expand Down

0 comments on commit 719f111

Please sign in to comment.