From 169a96c44fb5a3a44956cf59386cd50ca15fa555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Wed, 1 Jul 2020 10:06:53 +0200 Subject: [PATCH] Share grade download settings between the LMS and the CMS The GRADES_DOWNLOAD setting is shared between the LMS and the CMS, so its definition is moved to the common settings file. This is to address part of this issue: https://discuss.overhang.io/t/grades-file-not-generating-juniper-version/704 An upgrade to the minio plugin is also required. --- CHANGELOG.md | 4 ++++ .../apps/openedx/settings/partials/common_all.py | 8 ++++++++ .../apps/openedx/settings/partials/common_lms.py | 8 -------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66bcf69..f02efbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Note: Breaking changes between versions are indicated by "💥". +## Unreleased + +- [Bugfix] Share grade download settings between the LMS and the CMS + ## v10.0.8 (2020-06-23) - [Bugfix] Fix android user creation during init diff --git a/tutor/templates/apps/openedx/settings/partials/common_all.py b/tutor/templates/apps/openedx/settings/partials/common_all.py index 87dd1cd..350c7c3 100644 --- a/tutor/templates/apps/openedx/settings/partials/common_all.py +++ b/tutor/templates/apps/openedx/settings/partials/common_all.py @@ -34,6 +34,14 @@ MEDIA_ROOT = "/openedx/media/" VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"] = MEDIA_ROOT VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"] = MEDIA_ROOT +GRADES_DOWNLOAD = { + "STORAGE_TYPE": "", + "STORAGE_KWARGS": { + "base_url": "/media/grades/", + "location": "/openedx/media/grades", + }, +} + ORA2_FILEUPLOAD_BACKEND = "filesystem" ORA2_FILEUPLOAD_ROOT = "/openedx/data/ora2" ORA2_FILEUPLOAD_CACHE_NAME = "ora2-storage" diff --git a/tutor/templates/apps/openedx/settings/partials/common_lms.py b/tutor/templates/apps/openedx/settings/partials/common_lms.py index bad1f5f..5eb709d 100644 --- a/tutor/templates/apps/openedx/settings/partials/common_lms.py +++ b/tutor/templates/apps/openedx/settings/partials/common_lms.py @@ -11,14 +11,6 @@ PROFILE_IMAGE_BACKEND["options"]["location"] = os.path.join( MEDIA_ROOT, "profile-images/" ) -GRADES_DOWNLOAD = { - "STORAGE_TYPE": "", - "STORAGE_KWARGS": { - "base_url": "/media/grades/", - "location": "/openedx/media/grades", - }, -} - COURSE_CATALOG_VISIBILITY_PERMISSION = "see_in_catalog" COURSE_ABOUT_VISIBILITY_PERMISSION = "see_about_page"