Skip to content

feat: replace enterprise_support import with GradeEventContextRequested filter#38097

Draft
pwnage101 wants to merge 2 commits intomasterfrom
pwnage101/ENT-11563
Draft

feat: replace enterprise_support import with GradeEventContextRequested filter#38097
pwnage101 wants to merge 2 commits intomasterfrom
pwnage101/ENT-11563

Conversation

@pwnage101
Copy link
Contributor

@pwnage101 pwnage101 commented Mar 4, 2026

Removes the direct import of get_enterprise_event_context from openedx.features.enterprise_support.context in grades/events.py and replaces it with a call to the GradeEventContextRequested openedx-filter. Adds the filter to OPEN_EDX_FILTERS_CONFIG with the GradeEventContextEnricher pipeline step. Updates tests to mock the filter instead of the enterprise function.

ENT-11563

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


Blocked by:

pwnage101 and others added 2 commits March 2, 2026 16:56
Introduces OPEN_EDX_FILTERS_CONFIG to lms/envs/common.py as the central
configuration dict for openedx-filters pipeline steps. Adds the merge
logic in production.py so that YAML-supplied pipeline steps are appended
to the defaults and fail_silently values from YAML take precedence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ed filter

Removes the direct import of get_enterprise_event_context from
openedx.features.enterprise_support.context in grades/events.py and
replaces it with a call to the GradeEventContextRequested openedx-filter.
Adds the filter to OPEN_EDX_FILTERS_CONFIG with the GradeEventContextEnricher
pipeline step. Updates tests to mock the filter instead of the enterprise function.

ENT-11563

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

enterprise An enterprise-related change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant