diff --git a/changelog.d/20250324_232034_danyal.faheem_remove_site_configuration_script.md b/changelog.d/20250324_232034_danyal.faheem_remove_site_configuration_script.md new file mode 100644 index 00000000..013d2042 --- /dev/null +++ b/changelog.d/20250324_232034_danyal.faheem_remove_site_configuration_script.md @@ -0,0 +1 @@ +- [Improvement] Remove unnecessary site-configuration settings and waffle flags for the account and profile MFEs. (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutormfe/templates/mfe/tasks/lms/init b/tutormfe/templates/mfe/tasks/lms/init index 45f69a37..f930faae 100644 --- a/tutormfe/templates/mfe/tasks/lms/init +++ b/tutormfe/templates/mfe/tasks/lms/init @@ -2,21 +2,9 @@ ./manage.py lms waffle_flag --list > /tmp/lms_waffle_flags.txt {% if is_mfe_enabled("account") %} -grep account.redirect_to_microfrontend /tmp/lms_waffle_flags.txt || ./manage.py lms waffle_flag --create --everyone account.redirect_to_microfrontend ./manage.py lms populate_retirement_states -{% else %} -./manage.py lms waffle_delete --flags account.redirect_to_microfrontend {% endif %} -{% if is_mfe_enabled("profile") %} -grep learner_profile.redirect_to_microfrontend /tmp/lms_waffle_flags.txt || ./manage.py lms waffle_flag --create --everyone learner_profile.redirect_to_microfrontend -site-configuration set --domain={{ LMS_HOST }} ENABLE_PROFILE_MICROFRONTEND true -site-configuration set --domain={{ LMS_HOST }}:8000 ENABLE_PROFILE_MICROFRONTEND true -{% else %} -site-configuration unset --domain={{ LMS_HOST }} ENABLE_PROFILE_MICROFRONTEND -site-configuration unset --domain={{ LMS_HOST }}:8000 ENABLE_PROFILE_MICROFRONTEND -./manage.py lms waffle_delete --flags learner_profile.redirect_to_microfrontend -{% endif %} {% if is_mfe_enabled("learner-dashboard") %} grep learner_home_mfe.enabled /tmp/lms_waffle_flags.txt || ./manage.py lms waffle_flag --create --everyone learner_home_mfe.enabled