Skip to content

feat: replace enterprise_support import with GradeEventContextRequested filter#38097

Open
pwnage101 wants to merge 7 commits intomasterfrom
pwnage101/ENT-11563
Open

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

Conversation

@pwnage101
Copy link
Copy Markdown
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>
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from 8a889ec to 4c2d441 Compare April 14, 2026 21:57
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from 038a651 to d11c292 Compare May 5, 2026 06:46
@kiram15 kiram15 marked this pull request as ready for review May 5, 2026 17:08
@kiram15 kiram15 requested review from feanil and kdmccormick as code owners May 5, 2026 17:08
Copy link
Copy Markdown
Member

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

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

Thanks for this work! I think we can avoid adding more complexity to production.py, though, no?

Comment thread lms/envs/production.py Outdated
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch 2 times, most recently from 2e79de9 to fa66d0b Compare May 5, 2026 20:25
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from fa66d0b to 2ad7aa1 Compare May 5, 2026 20:26
Comment thread lms/envs/common.py Outdated
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch 3 times, most recently from 22f0eb2 to cacd853 Compare May 5, 2026 22:08
Comment thread lms/envs/common.py Outdated
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from cacd853 to c639ffa Compare May 6, 2026 16:43
@kiram15 kiram15 requested a review from a team as a code owner May 6, 2026 16:43
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from c639ffa to d295fe4 Compare May 6, 2026 16:55
@kdmccormick kdmccormick dismissed their stale review May 6, 2026 18:16

addressed

@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch 2 times, most recently from 0d3ab25 to 9d29ea4 Compare May 6, 2026 20:38
@kiram15 kiram15 force-pushed the pwnage101/ENT-11563 branch from 9d29ea4 to 5f04eea Compare May 6, 2026 20:38
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.

3 participants