Skip to content

feat: add support contact tag pipeline step - #2688

Merged
brobro10000 merged 1 commit into
openedx:masterfrom
brobro10000:brobro10000/ENT-11574
Sep 9, 2026
Merged

brobro10000 merged 1 commit into
openedx:masterfrom
brobro10000:brobro10000/ENT-11574

Conversation

@brobro10000

@brobro10000 brobro10000 commented Sep 3, 2026

Copy link
Copy Markdown
Member

ENT-11574

Adds SupportContactEnterpriseTagStep, registered in ENTERPRISE_FILTERS_CONFIG
(enterprise/settings/common.py) against the new SupportContactContextRequested
openedx-filter. Appends the enterprise_learner tag to support tickets submitted by
requesters linked to a customer account — the same check and tag value as the original
inline contact_us.py logic, just moved behind a filter.

Follows the pattern established by the other edx-enterprise filter pipeline steps
(discounts.py, courseware.py, enrollment.py): top-level imports guarded by
try/except ImportError, no broad exception swallowing, fail_silently: False (matching
every current ENTERPRISE_FILTERS_CONFIG entry — errors propagate rather than being
swallowed), and tests built on real Django model factories rather than module-mocking.

Registration lives in enterprise/settings/common.py's plugin_settings(), not in
openedx-platform/edx-platform settings — per the ENT-11830 ownership handoff (already
merged in all 3 repos before this branch existed).

Related PRs

Testing

New: tests/filters/test_support.py — 4 tests for SupportContactEnterpriseTagStep, using a
real UserFactory instance and RequestFactory. The existing generic
TestEnterpriseFiltersConfig smoke test in tests/test_enterprise/test_settings.py also
covers our new ENTERPRISE_FILTERS_CONFIG entry automatically (no changes needed there).

Locally verified: pytest tests/filters/ tests/test_enterprise/test_settings.py — 80 passed.
isort --check-only clean.

Changelog / version

Bumped __version__ to 8.10.0 and added a CHANGELOG.rst entry, matching current practice
(e.g. #2556).

Devstack testing (all 3 relevant branches checked out together) is required before merging,
per the enterprise plugin ticket runbook — see handoff prompt in the openedx-platform PR.

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.03%. Comparing base (abb9145) to head (d6e4b37).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2688   +/-   ##
=======================================
  Coverage   87.02%   87.03%           
=======================================
  Files         263      264    +1     
  Lines       17234    17247   +13     
  Branches     1704     1705    +1     
=======================================
+ Hits        14998    15011   +13     
  Misses       1897     1897           
  Partials      339      339           
Flag Coverage Δ
unittests 87.03% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574 branch from baa85bf to 99ba6af Compare September 8, 2026 12:37
@brobro10000 brobro10000 changed the title feat: add support view pipeline steps for enterprise context feat: add support contact tag pipeline step Sep 8, 2026
@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574 branch from 99ba6af to 3b8d8a8 Compare September 8, 2026 14:03
Comment thread enterprise/filters/support.py
@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574 branch from 3b8d8a8 to a626b13 Compare September 8, 2026 16:41
Comment thread enterprise/filters/support.py Outdated

@pwnage101 pwnage101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just some nits.

@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574 branch from a626b13 to 959e503 Compare September 9, 2026 16:09
Adds SupportContactEnterpriseTagStep, registered in ENTERPRISE_FILTERS_CONFIG
against the new SupportContactContextRequested openedx-filter. Per
pwnage101's review feedback, the current request is fetched internally via
crum.get_current_request() rather than threaded through the filter/pipeline
signature (matching courseware.py, dashboard.py, enrollment.py,
logistration.py, course_modes.py). Also per review feedback, doesn't add a
defensive None-check around the guarded enterprise_support import — the
top-level try/except ImportError guard is sufficient, matching
discounts.py/courseware.py, and the extra check would just need to be
removed again once ENT-11576 drops the guarded import entirely. Follows the
established pattern used by the other edx-enterprise filter pipeline
steps: top-level imports guarded by try/except ImportError, no broad
exception swallowing, and tests built on real Django model factories.

ENT-11574
@brobro10000
brobro10000 force-pushed the brobro10000/ENT-11574 branch from 959e503 to d6e4b37 Compare September 9, 2026 16:36
@brobro10000
brobro10000 marked this pull request as ready for review September 9, 2026 18:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-09T18:07:43.581568Z d6e4b37 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brobro10000
brobro10000 merged commit 127b2b5 into openedx:master Sep 9, 2026
11 checks passed
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.

2 participants