From 0c2c725053511427022ff68a195b473922dc159d Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Thu, 4 Apr 2024 12:49:37 -0400 Subject: [PATCH] feat: switch to new Files & Uploads page In Studio, this switches from the Django-rendered Files & Uploads page to the new version of the page in the course-authoring MFE. Operators can opt-out for Redwood by disabling the `contentstore.new_studio_mfe.use_new_files_uploads_page` flag, either per-course or site-wide. Operators can also still disable the course-authoring MFE entirely. However, starting in Sumac, this option will be removed for the Files & Uploads page (and potentially for other pages) so we recommend that operators switch to the new page during Redwood. Part of: https://github.com/openedx/studio-frontend/issues/381 --- tutormfe/templates/mfe/tasks/lms/init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutormfe/templates/mfe/tasks/lms/init b/tutormfe/templates/mfe/tasks/lms/init index 69e364f0..23e49056 100644 --- a/tutormfe/templates/mfe/tasks/lms/init +++ b/tutormfe/templates/mfe/tasks/lms/init @@ -30,6 +30,7 @@ site-configuration unset --domain={{ LMS_HOST }}:8000 ENABLE_PROFILE_MICROFRONTE {% if is_mfe_enabled("course-authoring") %} (./manage.py lms waffle_flag --list | grep discussions.pages_and_resources_mfe) || ./manage.py lms waffle_flag --create --everyone discussions.pages_and_resources_mfe +(./manage.py lms waffle_flag --list | grep contentstore.new_studio_mfe.use_new_files_uploads_page) || ./manage.py lms waffle_flag --create --everyone contentstore.new_studio_mfe.use_new_files_uploads_page (./manage.py lms waffle_flag --list | grep new_core_editors.use_new_text_editor) || ./manage.py lms waffle_flag --create --deactivate new_core_editors.use_new_text_editor (./manage.py lms waffle_flag --list | grep new_core_editors.use_new_video_editor) || ./manage.py lms waffle_flag --create --deactivate new_core_editors.use_new_video_editor (./manage.py lms waffle_flag --list | grep new_core_editors.use_new_problem_editor) || ./manage.py lms waffle_flag --create --deactivate new_core_editors.use_new_problem_editor @@ -38,6 +39,7 @@ site-configuration unset --domain={{ LMS_HOST }}:8000 ENABLE_PROFILE_MICROFRONTE ./manage.py lms waffle_delete --flags new_core_editors.use_new_text_editor ./manage.py lms waffle_delete --flags new_core_editors.use_new_video_editor ./manage.py lms waffle_delete --flags new_core_editors.use_new_problem_editor +./manage.py lms waffle_delete --flags contentstore.new_studio_mfe.use_new_files_uploads_page {% endif %} {% if is_mfe_enabled("discussions") %}