refactor!: Using Waffle flag to enable Account MFE globally. - #27623
Conversation
This commit refactors the way the Account MFE is activated in the platform. The main objective is to control the global activation/deactivation of the MFE through the account.redirect_to_microfrontend waffle flag and use the Site Configurations to control MFE activation/deactivation with per-site granularity. Notice that the Site Configuration object will have precedence over the waffle flag value. Since the classic Account Django view will be most likely supported during Lilac, the expiration of this temporary waffle flag was extended till the end of 2021 With this commit: - There's no need to create a Site Configuration object to get the MFE activated. Setting the waffle flag to True is enough. - It helps multisite installations to better handling granular per-site activation/deactivation. BREAKING CHANGE: For operators of multisite installations, the activation of the waffle flag will now activate the MFE for all sites, unless explicitly disabled on a per-site basis. Otherwise, this is a backwards-compatible change, since the MFE will remain activated for installations where this is already enabled.
|
Thanks for the pull request, @ericfab179! I've created OSPR-5779 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
|
@nedbat do we need a PR for this backport? or you can apply the cherry-pick? |
|
@ericfab179 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
…_global… …ly_backport refactor!: Using Waffle flag to enable Account MFE globally.
|
@ericfab179 @robrap Thank you both. |
Backport of #27518
Related BTR issue openedx/wg-build-test-release#27