Skip to content

feat: remove enterprise dashboard context imports (ENT-11569)#38094

Merged
kiram15 merged 1 commit into
masterfrom
pwnage101/ENT-11569
May 12, 2026
Merged

feat: remove enterprise dashboard context imports (ENT-11569)#38094
kiram15 merged 1 commit into
masterfrom
pwnage101/ENT-11569

Conversation

@pwnage101
Copy link
Copy Markdown
Contributor

feat: remove enterprise dashboard context imports (ENT-11569)

ENT-11569

Comment thread common/djangoapps/student/views/management.py Fixed
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11569 branch from 87089ed to 4637f70 Compare March 4, 2026 21:58
@pwnage101 pwnage101 marked this pull request as draft March 5, 2026 00:22
Copy link
Copy Markdown
Contributor Author

@pwnage101 pwnage101 left a comment

Choose a reason for hiding this comment

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

Note for implementer/reviewer: looks like isort got ran with the wrong parameters. at least fix that.

@pwnage101 pwnage101 added the enterprise An enterprise-related change label Mar 18, 2026
@kiram15 kiram15 force-pushed the pwnage101/ENT-11569 branch 2 times, most recently from 325efef to 644789f Compare April 20, 2026 21:22
@kiram15 kiram15 marked this pull request as ready for review April 20, 2026 21:51
Comment thread common/djangoapps/student/views/dashboard.py Outdated
@kiram15 kiram15 force-pushed the pwnage101/ENT-11569 branch 3 times, most recently from 02fafbf to c0912bf Compare April 28, 2026 23:08
@kiram15 kiram15 requested a review from a team as a code owner April 28, 2026 23:08
Comment thread lms/envs/common.py Outdated
Comment thread requirements/edx/base.txt Outdated
Comment thread common/djangoapps/student/views/management.py Outdated
Comment thread cms/envs/help_tokens.ini
Comment thread lms/envs/common.py
@kiram15 kiram15 force-pushed the pwnage101/ENT-11569 branch 2 times, most recently from 646712c to 6ef4473 Compare April 29, 2026 21:41
Comment thread common/djangoapps/student/views/dashboard.py Outdated
Copy link
Copy Markdown
Contributor Author

@pwnage101 pwnage101 left a comment

Choose a reason for hiding this comment

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

✅ Approved!

Comment thread lms/envs/common.py Outdated
Comment thread common/djangoapps/student/views/management.py Outdated
Comment thread common/djangoapps/student/views/dashboard.py Outdated
Comment thread common/djangoapps/student/views/management.py Outdated
Comment thread common/djangoapps/student/views/management.py
Comment thread common/djangoapps/third_party_auth/pipeline.py Outdated
Comment thread requirements/edx/doc.txt Outdated
Copy link
Copy Markdown
Contributor Author

@pwnage101 pwnage101 left a comment

Choose a reason for hiding this comment

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

✅ Approved!

@kiram15 kiram15 force-pushed the pwnage101/ENT-11569 branch from f85f5ec to c081d09 Compare May 12, 2026 16:23
@kiram15 kiram15 enabled auto-merge (squash) May 12, 2026 16:57
@kiram15 kiram15 merged commit 7bd6e04 into master May 12, 2026
46 checks passed
@kiram15 kiram15 deleted the pwnage101/ENT-11569 branch May 12, 2026 16:59
Copilot AI added a commit that referenced this pull request May 14, 2026
…xt 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enterprise An enterprise-related change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants