feat: add pluggable override for learner home enterprise customer lookup#2554
Draft
feat: add pluggable override for learner home enterprise customer lookup#2554
Conversation
pwnage101
commented
Mar 5, 2026
| log = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| def enterprise_get_enterprise_customer(prev_fn, user, request, is_masquerading): |
Contributor
Author
There was a problem hiding this comment.
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.
pwnage101
commented
Mar 5, 2026
| 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. |
Contributor
Author
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ENT-11571
Related: