Skip to content

feat: replace enterprise support enrollment imports with filter call - #39083

Draft
brobro10000 wants to merge 1 commit into
openedx:masterfrom
brobro10000:brobro10000/ENT-11574-enrollment
Draft

feat: replace enterprise support enrollment imports with filter call#39083
brobro10000 wants to merge 1 commit into
openedx:masterfrom
brobro10000:brobro10000/ENT-11574-enrollment

Conversation

@brobro10000

Copy link
Copy Markdown
Member

ENT-11574

Companion PR to the already-open support-contact-tag PR set (openedx-filters#390,
edx-enterprise#2688, openedx-platform#39076, edx-platform#455) — this one covers the
other half of ENT-11574's acceptance criteria: enterprise enrollment data for the support
enrollment view.

Removes the direct openedx.features.enterprise_support imports and the
_enterprise_course_enrollments_by_course_id helper from EnrollmentSupportListView,
replacing them with a call to the new SupportEnrollmentDataRequested openedx-filter. No
settings changes in this PR: OPEN_EDX_FILTERS_CONFIG registration for the pipeline step
lives entirely in edx-enterprise's own plugin_settings() (enterprise/settings/common.py),
per the ENT-11830 ownership handoff — already merged in this repo (#38634) well before this
branch existed.

lms/djangoapps/support/views/contact_us.py is untouched — this PR is scoped to the
enrollment filter only.

Related PRs

Merge order (per the enterprise plugin ticket runbook)

This PR merges LAST, only after:

  1. openedx-filters and edx-enterprise are merged and released.
  2. The edx/edx-platform sibling PR is merged, deployed to stage, tested, deployed to prod, and
    confirmed working.
  3. This PR is rebased and any stage/prod fixes are cherry-picked in.

CI note

CI here is expected to be red on Django-app-boot-dependent jobs until openedx-filters and
edx-enterprise are released and this repo's requirements/edx/base.txt pin is bumped — CI
installs the published PyPI versions, which don't yet contain
SupportEnrollmentDataRequested/the new pipeline step. Same situation as the sibling
contact-tag PR (openedx-platform#39076) and pwnage101's own ENT-11573 (#38109) historically.
Not a bug in this diff — it self-resolves per the runbook's release ordering.

Testing

New: SupportEnrollmentDataRequested.run_filter is mocked at the call site in
lms/djangoapps/support/tests/test_views.py — the pipeline-step behavior itself is covered
by edx-enterprise's own test suite.

Local devstack integration testing (with the openedx-filters, edx-enterprise, and edx-platform
branches checked out together) is required before any of these PRs merge.

ENT-11574

Removes the direct openedx.features.enterprise_support imports and the
_enterprise_course_enrollments_by_course_id helper from
EnrollmentSupportListView, replacing them with a call to the new
SupportEnrollmentDataRequested openedx-filter. Per pwnage101's review
feedback on the sibling SupportContactContextRequested filter, run_filter
now returns a tuple of all its inputs (enrollment_data, user) rather than a
bare dict, matching the convention used by every other filter. No settings
changes here: OPEN_EDX_FILTERS_CONFIG registration for the pipeline step
lives in edx-enterprise's own plugin_settings() (enterprise/settings/common.py),
per the ENT-11830 ownership handoff. The test now mocks the filter call at
the view layer; the enterprise-specific pipeline step behavior is covered
by edx-enterprise's own test suite.
@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574-enrollment branch from 6cf55b9 to abd843c Compare September 8, 2026 16:46
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