From 7a0b4f1dd7b84f2f06705749942498fd029e84d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Fri, 1 Mar 2024 16:11:17 -0300 Subject: [PATCH] feat: add course authoring mfe base url to mfe config --- ...20240301_160746_romulo_add_course_authoring_url_mfe_config.md | 1 + tutormfe/patches/openedx-lms-development-settings | 1 + tutormfe/patches/openedx-lms-production-settings | 1 + 3 files changed, 3 insertions(+) create mode 100644 changelog.d/20240301_160746_romulo_add_course_authoring_url_mfe_config.md diff --git a/changelog.d/20240301_160746_romulo_add_course_authoring_url_mfe_config.md b/changelog.d/20240301_160746_romulo_add_course_authoring_url_mfe_config.md new file mode 100644 index 00000000..d44b6a53 --- /dev/null +++ b/changelog.d/20240301_160746_romulo_add_course_authoring_url_mfe_config.md @@ -0,0 +1 @@ +- [Improvement] Adds the "COURSE_AUTHORING_MFE_BASE_URL" to MFE_CONFIG pointing to the Course Authoring MFE address. (by @rpenido) diff --git a/tutormfe/patches/openedx-lms-development-settings b/tutormfe/patches/openedx-lms-development-settings index bf633746..9c97b3df 100644 --- a/tutormfe/patches/openedx-lms-development-settings +++ b/tutormfe/patches/openedx-lms-development-settings @@ -38,6 +38,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL {% if get_mfe("course-authoring") %} MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True +MFE_CONFIG["COURSE_AUTHORING_MICROFRONTEND_URL"] = "http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"]/course-authoring" {% endif %} {% if get_mfe("discussions") %} diff --git a/tutormfe/patches/openedx-lms-production-settings b/tutormfe/patches/openedx-lms-production-settings index 1df4bcfe..37b79471 100644 --- a/tutormfe/patches/openedx-lms-production-settings +++ b/tutormfe/patches/openedx-lms-production-settings @@ -39,6 +39,7 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL {% if get_mfe("course-authoring") %} MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True +MFE_CONFIG["COURSE_AUTHORING_MICROFRONTEND_URL"] = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/course-authoring" {% endif %} {% if get_mfe("discussions") %}