Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dagster pipeline to ingest edx.org course via API #1455

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rachellougee
Copy link
Contributor

@rachellougee rachellougee commented Jan 31, 2025

What are the relevant tickets?

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

Description (What does it do?)

adding a new dagster asset edxorg_mitx_course_metadata to ingest the MITx course data from the edx.org course catalog API. This will be part of the existing automation edxorg_api_schedule

How can this be tested?

This can't tested with the new API credential in https://vault-qa.odl.mit.edu/ui/vault/secrets/secret-data/show/pipelines/edx/edxorg/edx-oauth-client (blocked by https://github.com/mitodl/hq/issues/6638)

Once the credential issue is solved, it should be
dagster dev -d src/ol_orchestrate/ -f src/ol_orchestrate/definitions/edx/edxorg_api_data_extract.py

You should see the logs like:

Total MITx courses to extract: 448 courses
Extracted a batch of 20 MITx courses. Total so far: 20 courses.
-----

Total extracted 448 MITx courses....
Total extracted 1437 MITx course runs....

@rachellougee rachellougee changed the title Ingest MITx courses via API and create MITx course and run assets feat: dagster pipeline to ingest edx.org course via API Jan 31, 2025
@rachellougee rachellougee marked this pull request as ready for review February 4, 2025 17:17
@quazi-h quazi-h self-assigned this Feb 5, 2025
Copy link
Contributor

@quazi-h quazi-h left a comment

Choose a reason for hiding this comment

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

Logic and syntax looks good to me, consistent with our existing edxorg assets and definitions. I would definitely like to see this running locally before release but approving the logic for now.

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