6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 06:07:56 +00:00

Fix crash when viewing problem in LMS

This was due to incorrectly loading the coursewarehistoryextended in the
installed applications. Also, the database router in charge of routing
requests to the student_history_module database must be disabled.
This commit is contained in:
Régis Behmo 2020-06-17 11:10:37 +02:00
parent d493de1924
commit baca27bfbd
3 changed files with 12 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Bugfix] Fix crash when viewing problem in LMS
- [Bugfix] Fix missing webpack-stats.json in openedx Docker image
## v10.0.1 (2020-06-15)

View File

@ -21,6 +21,12 @@ DATA_DIR = "/openedx/data/"
for store in MODULESTORE["default"]["OPTIONS"]["stores"]:
store["OPTIONS"]["fs_root"] = DATA_DIR
# Get rid completely of coursewarehistoryextended, as we do not use the CSMH database
INSTALLED_APPS.remove("coursewarehistoryextended")
DATABASE_ROUTERS.remove(
"openedx.core.lib.django_courseware_routers.StudentModuleHistoryExtendedRouter"
)
# Set uploaded media file path
MEDIA_ROOT = "/openedx/media/"

View File

@ -42,6 +42,10 @@ RUN curl https://github.com/overhangio/edx-platform/commit/5f21bbe77056d71ca61b9
# https://github.com/edx/edx-platform/pull/24055
# https://github.com/overhangio/edx-platform/tree/regisb/fix-lti-provider-admin
RUN curl https://github.com/overhangio/edx-platform/commit/089b26eed0302ed1f9a5b24c5f3e563dd44abb04.patch | git apply -
# Fix problem viewing when CSMH is disabled
# https://github.com/edx/edx-platform/pull/24237
# https://github.com/overhangio/edx-platform/tree/overhangio/fix-no-csmh
RUN curl https://github.com/overhangio/edx-platform/commit/6dbf2eddf7a4563c04c3b51edf5e131106d69e19.patch | git apply -
# Download extra locales to /openedx/locale/contrib/locale
RUN cd /tmp \
@ -61,7 +65,7 @@ RUN pip install -r requirements/edx/base.txt
# Install patched version of ora2
RUN pip install https://github.com/overhangio/edx-ora2/archive/overhangio/boto2to3.zip
# Install juniper-compatible scorm xblock
# Install scorm xblock
RUN pip install "openedx-scorm-xblock<11.0.0,>=10.0.0"
# Install a recent version of nodejs