diff --git a/changelog.d/20231208_142032_arbrandes_nightly.md b/changelog.d/20231208_142032_arbrandes_nightly.md new file mode 100644 index 00000000..155f4ec8 --- /dev/null +++ b/changelog.d/20231208_142032_arbrandes_nightly.md @@ -0,0 +1 @@ +- [Feature] Enable the new per-unit discussions sidebar in the Learning MFE. (by @arbrandes) diff --git a/tutormfe/patches/openedx-lms-development-settings b/tutormfe/patches/openedx-lms-development-settings index ff227a65..1b5e5297 100644 --- a/tutormfe/patches/openedx-lms-development-settings +++ b/tutormfe/patches/openedx-lms-development-settings @@ -42,6 +42,7 @@ MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True {% if get_mfe("discussions") %} DISCUSSIONS_MICROFRONTEND_URL = "http://{{ MFE_HOST }}:{{ get_mfe("discussions")["port"] }}/discussions" +MFE_CONFIG["DISCUSSIONS_MFE_BASE_URL"] = DISCUSSIONS_MICROFRONTEND_URL DISCUSSIONS_MFE_FEEDBACK_URL = None {% endif %} diff --git a/tutormfe/patches/openedx-lms-production-settings b/tutormfe/patches/openedx-lms-production-settings index 88c6581b..d26de19a 100644 --- a/tutormfe/patches/openedx-lms-production-settings +++ b/tutormfe/patches/openedx-lms-production-settings @@ -43,6 +43,7 @@ MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True {% if get_mfe("discussions") %} DISCUSSIONS_MICROFRONTEND_URL = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/discussions" +MFE_CONFIG["DISCUSSIONS_MFE_BASE_URL"] = DISCUSSIONS_MICROFRONTEND_URL DISCUSSIONS_MFE_FEEDBACK_URL = None {% endif %} diff --git a/tutormfe/templates/mfe/tasks/lms/init b/tutormfe/templates/mfe/tasks/lms/init index 85a652ce..69e364f0 100644 --- a/tutormfe/templates/mfe/tasks/lms/init +++ b/tutormfe/templates/mfe/tasks/lms/init @@ -46,12 +46,14 @@ site-configuration unset --domain={{ LMS_HOST }}:8000 ENABLE_PROFILE_MICROFRONTE (./manage.py lms waffle_flag --list | grep discussions.enable_moderation_reason_codes ) || ./manage.py lms waffle_flag --create --everyone discussions.enable_moderation_reason_codes (./manage.py lms waffle_flag --list | grep discussions.enable_reported_content_email_notifications ) || ./manage.py lms waffle_flag --create --everyone discussions.enable_reported_content_email_notifications (./manage.py lms waffle_flag --list | grep discussions.enable_learners_stats ) || ./manage.py lms waffle_flag --create --everyone discussions.enable_learners_stats +(./manage.py lms waffle_flag --list | grep discussions.enable_new_structure_discussions ) || ./manage.py lms waffle_flag --create --everyone discussions.enable_new_structure_discussions {% else %} ./manage.py lms waffle_delete --flags discussions.enable_discussions_mfe ./manage.py lms waffle_delete --flags discussions.enable_learners_tab_in_discussions_mfe ./manage.py lms waffle_delete --flags discussions.enable_moderation_reason_codes ./manage.py lms waffle_delete --flags discussions.enable_reported_content_email_notifications ./manage.py lms waffle_delete --flags discussions.enable_learners_stats +./manage.py lms waffle_delete --flags discussions.enable_new_structure_discussions {% endif %} {% if is_mfe_enabled("ora-grading") %}