Skip to content

feat: replace enterprise imports in learner_home/views.py with pluggable_override#38107

Draft
pwnage101 wants to merge 1 commit intomasterfrom
pwnage101/ENT-11571
Draft

feat: replace enterprise imports in learner_home/views.py with pluggable_override#38107
pwnage101 wants to merge 1 commit intomasterfrom
pwnage101/ENT-11571

Conversation

@pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Mar 5, 2026

Remove enterprise_customer_from_session_or_learner_data and get_enterprise_learner_data_from_db imports. Replace get_enterprise_customer body with a default return None, decorated with @pluggable_override('OVERRIDE_LEARNER_HOME_GET_ENTERPRISE_CUSTOMER').

ENT-11571


Related:

…ble_override

Remove enterprise_customer_from_session_or_learner_data and get_enterprise_learner_data_from_db
imports. Replace get_enterprise_customer body with a default return None, decorated with
@pluggable_override('OVERRIDE_LEARNER_HOME_GET_ENTERPRISE_CUSTOMER').

ENT-11571
Comment on lines +208 to 209
@pluggable_override('OVERRIDE_LEARNER_HOME_GET_ENTERPRISE_CUSTOMER')
@function_trace("get_enterprise_customer")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe should swap these decorators so we don't lose tracing when enterprise is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant