Skip to content

Fix incorrect API endpoint usage for course mode creation#3394

Open
jkachel wants to merge 2 commits intomainfrom
jkachel/10575-stop-reusing-edx-client-in-reruns
Open

Fix incorrect API endpoint usage for course mode creation#3394
jkachel wants to merge 2 commits intomainfrom
jkachel/10575-stop-reusing-edx-client-in-reruns

Conversation

@jkachel
Copy link
Contributor

@jkachel jkachel commented Mar 17, 2026

What are the relevant tickets?

Closes mitodl/hq#10575

Description (What does it do?)

Cloning a course run through process_course_run_clone triggers calls to update edX course run data and create course modes in edX. When it does this, it passes along the edX API client object that it set up to these other function calls. However, these edX APIs are in different places - the course run clone API is in Studio, the rest are in the LMS - so they end up failing. This PR fixes that by not passing along the client.

How can this be tested?

You will need a working Tutor setup to test this.

Re-run a course and check the Celery logs. The course mode call should work properly.

@github-actions
Copy link

OpenAPI Changes

Show/hide ## Changes for v0.yaml:
## Changes for v0.yaml:


## Changes for v1.yaml:


## Changes for v2.yaml:


Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@Anas12091101 Anas12091101 self-assigned this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants