Skip to content

OCW resource readable_id needs to include more than course number #132

@mbertrand

Description

@mbertrand

Expected Behavior

Each run of an OCW course should be imported during the ETL pipeline as a distinct LearningResource. For example, "Chinese IV" (21G.104) from 2004, 2006, and 2018 should be stored as 3 separate LearningResource objects

Current Behavior

Only one OCW LearningResource with course id 21G.104 is imported during the ETL pipeline, with 3 runs. This is because readable_id is unique per platform and resource type.

unique_together = (("platform", "readable_id", "resource_type"),)

Possible Solution

Change readable_id for OCW courses to be <course_id>+<semester>_<year> and add the course_id to the associated Course.extra_course_numbers field.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions