Skip to content

Commit

Permalink
feat: Force-enable navigation sidebar in upgrade to Sumac
Browse files Browse the repository at this point in the history
When upgrading to Sumac, forcefully enable the Learning MFE's navigation
sidebar.
  • Loading branch information
arbrandes authored and regisb committed Dec 9, 2024
1 parent 5f600de commit 35e000f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Improvement] Forcefully enable the Learning MFE's navigation sidebar when upgrading to Sumac. (by @arbrandes)
6 changes: 6 additions & 0 deletions tutor/commands/upgrade/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def upgrade_from_nutmeg(context: click.Context, config: Config) -> None:


def upgrade_from_redwood(context: click.Context, config: Config) -> None:
# Forcefully enable the learning MFE's navigation sidebar.
if plugins.is_loaded("mfe"):
context.obj.job_runner(config).run_task(
"lms", "./manage.py lms waffle_flag --create --everyone courseware.enable_navigation_sidebar"
)

# Prevent switching to the MySQL storage backend in forum v2
if plugins.is_loaded("forum"):
fmt.echo_alert(
Expand Down

0 comments on commit 35e000f

Please sign in to comment.