Commit 0df61c5
fix: make enterprise DashboardContextEnricher fail-safe and add context defaults
After PR #38094 removed enterprise context variables from student_dashboard()
in favor of a DashboardContextEnricher filter pipeline, two issues remained:
1. fail_silently: False could crash the entire dashboard if the enricher is
unavailable or fails
2. enterprise_message and enterprise_learner_portal_enabled_message had no
explicit defaults in the context dict
Changes:
- lms/envs/common.py: Changed fail_silently: False to fail_silently: True
for DashboardContextEnricher to prevent dashboard crashes
- dashboard.py: Added explicit empty-string defaults for enterprise context
variables so the template contract is always satisfied
Agent-Logs-Url: https://github.com/openedx/openedx-platform/sessions/9dfd421a-df10-4df0-a99f-70d73ea5378e
Co-authored-by: kiram15 <31229189+kiram15@users.noreply.github.com>1 parent be000d1 commit 0df61c5
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
| 794 | + | |
793 | 795 | | |
794 | 796 | | |
795 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3292 | 3292 | | |
3293 | 3293 | | |
3294 | 3294 | | |
3295 | | - | |
| 3295 | + | |
3296 | 3296 | | |
3297 | 3297 | | |
3298 | 3298 | | |
| |||
0 commit comments