Skip to content

feat: replace enterprise support view imports with filter calls - #39076

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

feat: replace enterprise support view imports with filter calls#39076
brobro10000 wants to merge 1 commit into
openedx:masterfrom
brobro10000:brobro10000/ENT-11574

Conversation

@brobro10000

Copy link
Copy Markdown
Member

ENT-11574

Swaps the direct openedx.features.enterprise_support imports in the support contact-us and
enrollment views for calls to the new SupportContactContextRequested /
SupportEnrollmentDataRequested openedx-filters, and wires up OPEN_EDX_FILTERS_CONFIG for
the two new filter types (scoped to just these two entries — OPEN_EDX_FILTERS_CONFIG doesn't
exist on master yet, and other filter areas from this same epic have their own separate
in-flight branches/tickets).

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.

Do not merge before that sequence completes.

Testing

Changed: lms/djangoapps/support/tests/test_views.py — the enterprise-enrollment-data test now
mocks SupportEnrollmentDataRequested.run_filter at the call site (the enterprise-specific
pipeline-step behavior is covered by edx-enterprise's own test suite instead), and a new
ContactUsViewTests class verifies the contact-tag filter is wired correctly.

Local devstack integration testing (with the openedx-filters, edx-enterprise, and edx-platform
branches checked out together) is required before any of these four PRs merge — see the handoff
prompt below for exact steps.

ENT-11574

Swaps the direct openedx.features.enterprise_support imports in the support
contact-us and enrollment views for calls to the new
SupportContactContextRequested / SupportEnrollmentDataRequested
openedx-filters, and wires up OPEN_EDX_FILTERS_CONFIG for the two new
filter types (edx-enterprise's pipeline steps). Tests now mock the filter
call at the view layer; the enterprise-specific pipeline step behavior is
covered by edx-enterprise's own test suite.
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