From e566b9b6d07351f4828640ebee37a18034766f3b Mon Sep 17 00:00:00 2001 From: Danyal-Faheem Date: Tue, 13 Feb 2024 13:57:00 +0500 Subject: [PATCH 1/2] fix: allow removal of course-authoring mfe --- tutormfe/patches/openedx-cms-development-settings | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutormfe/patches/openedx-cms-development-settings b/tutormfe/patches/openedx-cms-development-settings index bfbf031..ec895df 100644 --- a/tutormfe/patches/openedx-cms-development-settings +++ b/tutormfe/patches/openedx-cms-development-settings @@ -1,5 +1,7 @@ # MFE-specific settings +{% if get_mfe("course-authoring") %} COURSE_AUTHORING_MICROFRONTEND_URL = "http://{{ MFE_HOST }}:{{ get_mfe('course-authoring')["port"] }}/course-authoring" CORS_ORIGIN_WHITELIST.append("http://{{ MFE_HOST }}:{{ get_mfe('course-authoring')["port"] }}") LOGIN_REDIRECT_WHITELIST.append("{{ MFE_HOST }}:{{ get_mfe('course-authoring')["port"] }}") CSRF_TRUSTED_ORIGINS.append("http://{{ MFE_HOST }}:{{ get_mfe('course-authoring')["port"] }}") +{% endif %} From fb9aa9928eda5d9a61dfdc92581d80149ba10e17 Mon Sep 17 00:00:00 2001 From: Danyal-Faheem Date: Tue, 13 Feb 2024 14:26:31 +0500 Subject: [PATCH 2/2] fix: add changelog entry --- ...0213_141934_danyal.faheem_fix_course_authoring_mfe_removal.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/20240213_141934_danyal.faheem_fix_course_authoring_mfe_removal.md diff --git a/changelog.d/20240213_141934_danyal.faheem_fix_course_authoring_mfe_removal.md b/changelog.d/20240213_141934_danyal.faheem_fix_course_authoring_mfe_removal.md new file mode 100644 index 0000000..c3fce03 --- /dev/null +++ b/changelog.d/20240213_141934_danyal.faheem_fix_course_authoring_mfe_removal.md @@ -0,0 +1 @@ +[Bugfix] Make sure course-authoring mfe is present in MFE_APPS before applying cms-development-settings. (by @Danyal-Faheem)