Skip to content

Conversation

@rachellougee
Copy link
Contributor

@rachellougee rachellougee commented Sep 4, 2025

What are the relevant tickets?

https://github.com/mitodl/hq/issues/8318

Description (What does it do?)

Creating a management command to import the edX courses and course runs via Trino from data platform to mitxonline

  • It creates course runs, heir associate courses, course pages, and course certificate pages

The management command will be extended to migrate enrollments/certificate/grades later

How can this be tested?


TRINO_HOST=mitol-ol-data-interactive.trino.galaxy.starburst.io
TRINO_PORT=443
TRINO_CATALOG=ol_data_lake_production
TRINO_SCHEMA=ol_warehouse_production_migration
TRINO_USER=<YOUR USERNAME>
TRINO_PASSWORD=<YOUR USERNAME>
  • docker compose run --build

  • Create one signatory page if not exist

  • Run ./manage.py migrate_edx_data --use-default-signatory --limit 10: this will create 10 course runs with their associate courses, course pages, and course certificate pages using the default signatory

Successfully connected to Trino
x courses created
x course runs created

@annagav annagav self-requested a review September 26, 2025 16:17
@annagav annagav self-assigned this Sep 26, 2025
Copy link
Contributor

@annagav annagav left a comment

Choose a reason for hiding this comment

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

Works for me 👍

@rachellougee rachellougee merged commit afd707f into main Sep 26, 2025
9 of 10 checks passed
@odlbot odlbot mentioned this pull request Sep 29, 2025
10 tasks
@odlbot odlbot mentioned this pull request Sep 30, 2025
12 tasks
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.

2 participants