Skip to content

feat: add pluggable override for learner home enterprise customer lookup#2554

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

feat: add pluggable override for learner home enterprise customer lookup#2554
pwnage101 wants to merge 1 commit intomasterfrom
pwnage101/ENT-11571

Conversation

@pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Mar 5, 2026

log = logging.getLogger(__name__)


def enterprise_get_enterprise_customer(prev_fn, user, request, is_masquerading):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This new function needs to actually be hooked up to OVERRIDE_LEARNER_HOME_GET_ENTERPRISE_CUSTOMER, but:

  • we can't add it to the openedx-platform PR because this module won't be importable anymore, and
  • we can't add it to this PR because edx-enterprise isn't a plugin yet.

Ultimately, this work (ENT-11571) needs to be sequenced after converting edx-enterprise into a plugin, but before making the plugin optional. I think.

dict or None: enterprise customer data dict, or None if the user is not an
enterprise customer user.
"""
# Deferred imports — will be replaced with internal paths in epic 17.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clarify comment that this defensive import is only here temporarily because the plan is ultimately to migrate the entire enterprise_support app into edx-enterprise.

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