Skip to content

edu_wh v0.4.0

Latest
Compare
Choose a tag to compare
@rlittle08 rlittle08 released this 20 Sep 19:59
c0d4239

Migration guide

  • In your stadium repo, add contacts and student_contact_associations to dbt/models/staging/src_edfi_3.yml
    • example snippets:
 - name: contacts
    description: > 
      This entity represents a contact of a student, such as a parent, guardian or caretaker.
    enabled: true
    columns: *column_defaults
  - name: student_contact_associations
    description: >
      This association relates students to their parents, guardians, or caretakers.
    enabled: true
    columns: *column_defaults
  • Snowflake admin, run this DDL to create the new raw tables:
use role sysadmin;

-- FIRST, confirm ods_verson and data_model_version are included in your _template tables (should have been updated on previous upgrade migration)
-- alter table dev_raw.edfi3._template_table
-- add ods_version varchar, data_model_version varchar;

-- alter table raw.edfi3._template_table
-- add ods_version varchar, data_model_version varchar;

create or replace table dev_raw.edfi3.contacts 
like dev_raw.edfi3._template_table;

create or replace table dev_raw.edfi3.student_contact_associations 
like dev_raw.edfi3._template_table;

create or replace table raw.edfi3.contacts 
like raw.edfi3._template_table;

create or replace table raw.edfi3.student_contact_associations 
like raw.edfi3._template_table;
  • Search your stadium repo for any uses of dbt_utils.surrogate_key() - these must be updated to dbt_utils.generate_surrogate_key() to be compatible with new version of dbt_utils that is now installed by edu_edfi_source
  • Search your stadium repo for any references to stg_ef3__staff__races and replace with stg_ef3__staffs__races to be compatible with change in edu_edfi_source
  • Bump the versions of the following in packages.yml (the ext packages in these versions are needed for the dbt utils upgrade):
 - package: edanalytics/edu_wh
   version: [ ">=0.4.0", "<0.5.0" ]
 - package: edanalytics/edu_ext_one_roster
   version: [ ">=0.2.0", "<0.3.0" ]
 - package: edanalytics/edu_ext_podium
   version: [ ">=0.5.0", "<0.6.0" ]

What's Changed

New Contributors

Full Changelog: 0.3.4...0.4.0