Skip to content

fix: change SupportContactContextRequested to accept/return full context - #394

Merged
pwnage101 merged 1 commit into
openedx:mainfrom
brobro10000:brobro10000/ENT-11574-contact-fix
Sep 10, 2026
Merged

fix: change SupportContactContextRequested to accept/return full context#394
pwnage101 merged 1 commit into
openedx:mainfrom
brobro10000:brobro10000/ENT-11574-contact-fix

Conversation

@brobro10000

Copy link
Copy Markdown
Member

Description

Addresses pwnage101's review feedback on the sibling edx-platform PR #455: SupportContactContextRequested's original shape was wrong. It claimed to request the support-contact "context" but only ever passed/returned a bare tags list, and accepted a user argument that no pipeline step actually needs (it's available via crum internally, matching the convention used elsewhere in this codebase).

run_filter now takes a single context: dict and returns the (possibly modified) context dict directly — no tuple, matching the existing single-input/output pattern already used by filters like StudentRegistrationRequested.

Callers are expected to call this after populating context['tags'], so pipeline steps can read/modify the tags via context['tags'] in place.

Since the original shape (#390) already merged and released as 3.10.0, this is a new PR rather than an amendment.

Companion PRs

  • edx-enterprise: pipeline step update to match (forthcoming, same PR set)
  • openedx-platform / edx-platform: call-site update deferred until this and the edx-enterprise companion PR are released, to avoid breaking their CI against the old pinned version

ENT-11574

Per pwnage101's review feedback on edx-platform PR #455, the filter's
original shape was wrong: it claimed to request "context" but only ever
passed/returned a bare tags list, and accepted a user argument that no
pipeline step actually needs (it's available via crum internally, matching
the convention used elsewhere). run_filter now takes a single context dict
and returns the (possibly modified) context dict directly, with no tuple —
matching the existing single-input/output pattern used by filters like
StudentRegistrationRequested. Callers are expected to call this after
populating context['tags'], not before, so pipeline steps can read and
modify the tags in place via context['tags'].

ENT-11574
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 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-10T17:05:55.800971Z 9c1430b PR opened
ℹ️ 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.

@pwnage101
pwnage101 merged commit 560daa5 into openedx:main Sep 10, 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