mitodl / ol-data-platform

Pipeline definitions for managing data flows to power analytics at MIT Open Learning
BSD 3-Clause "New" or "Revised" License
36 stars 6 forks source link

int__micromasters__program_certificates doesn't include the new DEDP program under older requirement #883

Closed rachellougee closed 10 months ago

rachellougee commented 11 months ago

Description/Context

There are 6 program certificates added to backfill learners who earned a certificate under older DEDP requirements. This new DEDP program is not live, but it should count for DEDP program certificate and added in int__micromasters__program_certificates.

To fix it, we need to adjust the code here for determining is_dedp_program andis_micromasters_program as currently its hardcoded as program_id= 1 and 2.

Plan

rachellougee commented 11 months ago

@collinpreston @jkachel program_type was added to Program model a few month ago but it was never added to our data platform. Now we have need for this data, could one of you add that to https://github.com/mitodl/ol-data-platform/blob/main/src/ol_dbt/models/staging/mitxonline/stg__mitxonline__app__postgres__courses_program.sql?