Pace and format fields for LearningResource model #1588
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/5127
Closes https://github.com/mitodl/hq/issues/5128
Description (What does it do?)
Adds the
formatandpacefields and populates them via ETL pipelinesHow can this be tested?
Copy all the .env values needed for ETL pipelines (see
settings_course_etl.py) from RC, except contentfile-related settings (buckets for contentfiles).Run
docker compose upordocker compose run --rm web ./manage.py migrate. The new migration should complete successfully.Run all the following pipelines, they should complete successfully:
Check that the program "Supply Chain Management" has a
pacevalue of["self_paced", "instructor_paced"]Verify that the calculate of pace and format values follows the guidelines set per source in this spreadsheet. - - Run this code in a shell, you should get the same output assuming you have resources from each source:
Additional Context
Pace and format were modeled as lists at the resource level because it's possible that a program might have multiple values depending on the courses that make up the program (some might be a mix of sync and async, instructor-paced and self-paced).
Also, at one point there was a Sloan course with runs that were a mix of instructor-paced and self-paced, sync and async (though that is no longer the case).