Skip to content

feat: replace enterprise_support import with DiscountEligibilityCheckRequested filter#38842

Merged
marlonkeating merged 1 commit into
masterfrom
mkeating/ENT-11564
Jul 7, 2026
Merged

feat: replace enterprise_support import with DiscountEligibilityCheckRequested filter#38842
marlonkeating merged 1 commit into
masterfrom
mkeating/ENT-11564

Conversation

@marlonkeating

Copy link
Copy Markdown
Contributor

Backport of edx#349 for ENT-11564

Removes direct lazy imports of is_enterprise_learner from openedx.features.enterprise_support.utils in applicability.py and replaces them with calls to the DiscountEligibilityCheckRequested openedx-filter. Adds the filter to OPEN_EDX_FILTERS_CONFIG with the DiscountEligibilityStep pipeline step. Updates tests to mock the filter instead of using enterprise model factories.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

@marlonkeating
marlonkeating merged commit 6cb1e4f into master Jul 7, 2026
45 of 46 checks passed
@marlonkeating
marlonkeating deleted the mkeating/ENT-11564 branch July 7, 2026 20:15
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.

2 participants