Skip to content

Commit

Permalink
fix courserun_readable_id format for edxorg products
Browse files Browse the repository at this point in the history
  • Loading branch information
rachellougee committed Feb 21, 2025
1 parent cda833d commit f6a8de3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ models:
description: MITx course available modes and prices on edX.org
columns:
- name: courserun_readable_id
description: str, unique identifier for the course run in {org}+{course number}+{run}
description: str, unique identifier for the course run in {org}/{course number}/{run}
format.
tests:
- not_null
Expand All @@ -921,5 +921,3 @@ models:
- name: credit_hours
description: str, the number of credit hours that learners who pass the course
earn.
runs:
courserun_time_commitment:
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ with courseruns as (
)

select
courseruns.courserun_readable_id
{{ format_course_id('courseruns.courserun_readable_id') }} as courserun_readable_id
, cast(json_extract_scalar(t.seat, '$.price') as decimal(38, 2)) as price
, json_extract_scalar(t.seat, '$.type') as courserun_mode
, json_extract_scalar(t.seat, '$.currency') as currency
Expand Down
11 changes: 6 additions & 5 deletions src/ol_dbt/models/marts/combined/_marts__combined__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ models:
- name: product_readable_id
description: str, unique open edX Course ID formatted as course-v1:{org}+{course
code}+{run_tag} or program run ID formatted as program-v1:{org}+{program code}+{run_tag}
for MITx Online and xPro. For edX.org, the course ID is formatted as {org}/{course}/{run_tag}.
tests:
- not_null
- unique
Expand Down Expand Up @@ -553,7 +554,7 @@ models:
description: timestamp, date and time when the course or program enrollment ends
- name: upgrade_deadline
description: timestamp, date and time beyond which the learner can not enroll
in paid course mode. Only populated for MITx Online courses.
in paid course mode. Only populated for MITx courses.
- name: duration
description: str, a short description indicating how long the course or program
takes to complete (e.g. '4 weeks')
Expand All @@ -562,16 +563,16 @@ models:
'5-7 hours per week')
- name: certification_type
description: str, either 'MicroMasters Credential' or 'Certificate of Completion'
for MITx Online courses. 'Professional Certificate' for xPro courses.
for MITx courses. 'Professional Certificate' for xPro courses.
tests:
- not_null
- name: delivery
description: str, 'Online' or 'Other' for xPro. 'Online' for MITx Online.
description: str, 'Online' or 'Other' for xPro. 'Online' for MITx.
- name: continuing_education_credits
description: str, number of continuing education units or credits offered. e.g.
4.5. NULL for MITx Online courses.
4.5. NULL for MITx courses.
- name: pace
description: str, 'Self-paced' or 'Instructor-paced' for MITx Online courses.
description: str, 'Self-paced' or 'Instructor-paced'
- name: topics
description: str, list of topic names for a course.
- name: instructors
Expand Down

0 comments on commit f6a8de3

Please sign in to comment.