Skip to content

feat: replace enterprise_support import with DiscountEligibilityCheckRequested filter#38842

Open
marlonkeating wants to merge 1 commit into
masterfrom
mkeating/ENT-11564
Open

feat: replace enterprise_support import with DiscountEligibilityCheckRequested filter#38842
marlonkeating wants to merge 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

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