Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Logistration MFE url for forgot password email. #25476

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

adeelkhan
Copy link
Contributor

This patch would enable routing learner to logistration MFE
via forgot password url than on platform when
ENABLE_LOGISTRATION_MICROFRONTEND feature flag is set.

VAN-98

Comment on lines 41 to 43
logistration_mfe_enabled = configuration_helpers.get_value(
'ENABLE_LOGISTRATION_MICROFRONTEND', settings.FEATURES.get('ENABLE_LOGISTRATION_MICROFRONTEND')
)
site_name = settings.LOGISTRATION_MICROFRONTEND_URL.split('//')[1] if logistration_mfe_enabled \
else configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should_redirect_to_logistration_mircrofrontend() util function can be used. Also maybe we can save the logistration MFE domain name in a setting instead of calling split

Suggested change
logistration_mfe_enabled = configuration_helpers.get_value(
'ENABLE_LOGISTRATION_MICROFRONTEND', settings.FEATURES.get('ENABLE_LOGISTRATION_MICROFRONTEND')
)
site_name = settings.LOGISTRATION_MICROFRONTEND_URL.split('//')[1] if logistration_mfe_enabled \
else configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME)
site_name = settings.LOGISTRATION_MICROFRONTEND_URL_DOMAIN if should_redirect_to_logistration_mircrofrontend() \
else configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This patch would enable routing learner to logistration MFE
via forgot password url than on platform when
ENABLE_LOGISTRATION_MICROFRONTEND feature flag is set.

VAN-98
@adeelkhan adeelkhan force-pushed the adeel/van_98_update_confirm_password_url_domain branch from 25b6c1c to d61936f Compare October 29, 2020 11:25
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@adeelkhan adeelkhan merged commit 7cd9c66 into master Nov 3, 2020
@adeelkhan adeelkhan deleted the adeel/van_98_update_confirm_password_url_domain branch November 3, 2020 08:40
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants