Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions common/djangoapps/student/views/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,15 @@ def student_dashboard(request): # pylint: disable=too-many-statements
context = {
'urls': urls,
'programs_data': programs_data,
# These enterprise-related keys are populated by DashboardContextEnricher (via DashboardRenderStarted filter)
# when the enterprise package is installed. Safe defaults are provided here so that:
# 1. The template renders safely on non-enterprise deployments.
# 2. Any stale compiled Mako cache that still references consent_required_courses (from before
# PR #38094 removed that line) will not crash with "argument of type 'Undefined' is not iterable".
'enterprise_message': '',
'consent_required_courses': set(),
'enterprise_learner_portal_enabled_message': None,
'banner_account_activation_message': None,
'enrollment_message': enrollment_message,
'redirect_message': Text(redirect_message),
'account_activation_messages': account_activation_messages,
Expand Down
2 changes: 1 addition & 1 deletion lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3292,7 +3292,7 @@ def _should_send_certificate_events(settings):
"pipeline": ["enterprise.filters.accounts.AccountSettingsReadOnlyFieldsStep"],
},
"org.openedx.learning.dashboard.render.started.v1": {
"fail_silently": False,
"fail_silently": True,
"pipeline": ["enterprise.filters.dashboard.DashboardContextEnricher"],
},
}
Expand Down