Skip to content

feat: add management command context manager filter - #532

Open
rahulkanneri-2u wants to merge 2 commits into
release-ulmofrom
rahul/management-command-contextmanager-filter
Open

rahulkanneri-2u wants to merge 2 commits into
release-ulmofrom
rahul/management-command-contextmanager-filter

Conversation

@rahulkanneri-2u

Copy link
Copy Markdown

Description

Add a pluggable filter hook in manage.py so Django management command execution can be wrapped by configured Open edX filter pipelines. This provides a public integration point without embedding organization-specific monitoring logic in edx-platform.

Usage: Configure a pipeline step for
org.openedx.management.command.contextmanager.requested.v1 that returns a context manager.

Downstream of openedx#39194. Bumps openedx-filters to 3.16.0.

Description

Describe what this pull request changes, and why. Include implications for people using this change.
Design decisions and their rationales should be documented in the repo (docstring / ADR), per
OEP-19, and can be
linked here.

Useful information to include:

  • Which edX user roles will this change impact? Common user roles are "Learner", "Course Author",
    "Developer", and "Operator".
  • Include screenshots for changes to the UI (ideally, both "before" and "after" screenshots, if applicable).
  • Provide links to the description of corresponding configuration changes. Remember to correctly annotate these
    changes.

Supporting information

Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.

Testing instructions

Please provide detailed step-by-step instructions for testing this change.

Deadline

"None" if there's no rush, or provide a specific date or event (and reason) if there is one.

Other information

Include anything else that will help reviewers and consumers understand the change.

  • Does this change depend on other changes elsewhere?
  • Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.
  • If your database migration can't be rolled back easily.

Add a pluggable filter hook in manage.py so Django management
command execution can be wrapped by configured Open edX filter
pipelines. This provides a public integration point without embedding
organization-specific monitoring logic in edx-platform.

Usage: Configure a pipeline step for
org.openedx.management.command.contextmanager.requested.v1
that returns a context manager.

Downstream of openedx#39194. Bumps openedx-filters to 3.16.0.
Commit generated by workflow `edx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/release-ulmo`

Co-authored-by: robrap <14576445+robrap@users.noreply.github.com>
@robrap

robrap commented Nov 4, 2026

Copy link
Copy Markdown

@rahulkanneri-2u: [inform] I added the edx-django-utils upgrade to this PR. I don't think the other code is ensuring that, so might as well make sure.

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.

4 participants