mitodl / mitxpro

BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

feat: ingest external course APIs #2998

Closed asadali145 closed 3 weeks ago

asadali145 commented 1 month ago

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/4032

Description (What does it do?)

Ingest external course APIs for Emeritus.

This PR ingests the External Course API for Emeritus and creates/updates xPro data like Course, CourseRun, ExternalCoursePage, Topics, WhoShouldEnrollPage, and LearningOutcomesPage.

Here are a few things that are done intentionally:

Celery beat schedule is pending. I will add that after confirming with Bon.

How can this be tested?

Note: Before reviewing this PR, go through the following things in the linked issue:

Steps Please read all the steps before testing.

arslanashraf7 commented 3 weeks ago

@asadali145 Another thing:

asadali145 commented 3 weeks ago

@cachob Could you please review these Screenshots:

Course Page created with API data: Opera Snapshot_2024-06-25_180545_xpro odl local

Existing Emeritus Course:

Screenshot 2024-06-25 at 6 07 22 PM

New Emeritus Course created with API data:

Screenshot 2024-06-25 at 6 07 29 PM

Existing Course Run:

Screenshot 2024-06-25 at 6 08 21 PM

New Course Run created with API data:

Screenshot 2024-06-25 at 6 10 11 PM