Skip to content
Draft
3 changes: 3 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ models:
+schema: wh
qc:
+schema: qc
observability:
+schema: observability
+materialized: view

vars:
# labels for generated race/ethnicity groups
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_assessment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ models:
- name: k_assessment
description: Generated primary key composed of `tenant_code`, `api_year`, `academicSubjectDescriptor`, `assessmentIdentifier`, and `namespace`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: tenant_code
- name: school_year
- name: assessment_identifier
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_calendar_date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ models:
Generated primary key for an individual day in a single calendar
at a single school.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_school_calendar
description: Association to a single named calendar at a school.
- name: k_school
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_classroom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
- name: k_classroom
description: Defining key for school locations
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_school
description: Association to the school containing the location
- name: tenant_code
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_cohort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ models:
- name: k_cohort
description: Defining key for cohorts. Surrogate key for [`api_year` + `ed_org_id` + `cohort_id`]
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_lea
description: Association to the LEA with the cohort.
- name: k_school
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_course.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
- name: k_course
description: Defining key for courses. Generated primary key composed of `tenant_code`, `api_year`, `course_code`, and `ed_org_id`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: tenant_code
description: "Code defining the Tenant (may be an LEA, SEA, etc.) of the Ed-Fi ODS from which this record was pulled"
- name: school_year
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_course_section.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ models:
- name: k_course_section
description: Defining key for course sections
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_course
description: >
Unique identifier for the course. Foreign key reference to
Expand Down
4 changes: 2 additions & 2 deletions models/core_warehouse/dim_discipline_incident.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ models:
- name: k_discipline_incident
description: Generated primary key composed of `tenant_code`, `api_year`, `incident_id`, and `school_id`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_school
description: The school where the incident occurred. References dim_school
tests:
- not_null
- edu_edfi_source.edu_not_null
- name: tenant_code
description: "Code defining the Tenant (may be an LEA, SEA, etc.) of the Ed-Fi ODS from which this record was pulled"
- name: school_year
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_grading_period.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ models:
- name: k_grading_period
description: Generated primary key composed of 'grading_period', 'period_sequence', 'school_id', and 'school_year' (generated in [stg_ef3__grading_periods](#!/model/model.edu_edfi_source.stg_ef3__grading_periods))
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_school
description: Unique identifier for the school. Foreign key reference to [dim_school](#!/model/model.edu_wh.dim_school).
- name: tenant_code
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_graduation_plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ models:
- name: k_graduation_plan
description: Generated primary key composed of 'graduation_plan_type', 'ed_org_id', and 'graduation_school_year' (generated in [stg_ef3__graduation_plans](#!/model/model.edu_edfi_source.stg_ef3__graduation_plans))
tests:
- unique
- edu_edfi_source.edu_unique
- name: tenant_code
description: Code defining the Tenant (may be an LEA, SEA, etc.) of the Ed-Fi ODS from which this record was pulled
- name: school_year
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_learning_standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ models:
- name: k_learning_standard
description: Unique identifier for a learning standard.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_learning_standard__parent
description: A reference linking to a hierarchical parent learning standard id.
- name: tenant_code
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_objective_assessment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ models:
Generated primary key composed of `tenant_code`, `api_year`, `academicSubjectDescriptor`,
`assessmentIdentifier`, `namespace`, and `objectiveAssessmentIdentificationCode`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_assessment
- name: tenant_code
- name: school_year
Expand Down
4 changes: 2 additions & 2 deletions models/core_warehouse/dim_parent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ models:
- name: k_parent
description: Defining key for the parent, which is consistent across years.
tests:
- unique
- not_null
- edu_edfi_source.edu_unique
- edu_edfi_source.edu_not_null
- name: tenant_code
- name: school_year
- name: parent_unique_id
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ models:
- name: k_program
description: Defining key for programs. Surrogate key for [`api_year` + `ed_org_id` + `program_name` + `program_type`]
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_lea
description: Association to the LEA with the program.
- name: k_school
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_school.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_school
columns:
Expand Down
14 changes: 7 additions & 7 deletions models/core_warehouse/dim_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ models:
columns:
- name: k_student
description: Defining key for the student in this school year.
tests:
- unique
- not_null
tests:
- edu_edfi_source.edu_unique
- edu_edfi_source.edu_not_null
- name: k_student_xyear
description: Defining key for the student, which is consistent across years.
tests:
- not_null
tests:
- edu_edfi_source.edu_not_null
- name: tenant_code
- name: school_year
description: >
School year specified by Spring year.
e.g. the 2021-2022 year would be 2022.
tests:
- not_null
tests:
- edu_edfi_source.edu_not_null
- name: student_unique_id
description: The student's unique id number in the education organization.
- name: first_name
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/dim_subgroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ models:
- name: k_subgroup
description: Defining key for subgroups. A surrogate key for [`subgroup_category` + `subgroup_value`]
tests:
- unique
- edu_edfi_source.edu_unique
- name: subgroup_category
description: Category of subgroup. e.g. "grade_level"
- name: subgroup_category_display_name
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_course_transcripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_course
- k_student_academic_record
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_assessment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ models:
description: >
Generated primary key composed of `tenant_code`, `api_year`, and `studentAssessmentIdentifier`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_assessment
description: Unique identifier of the assessment. Foreign key reference to `dim_assessment`.
- name: k_student
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_cohort_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ models:
tags: ['cohort']
enabled: "{{ var('src:domain:cohort:enabled', True) }}"
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_cohort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
enabled: "{{ var('src:program:cte:enabled', True) }}"

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_daily_attendance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_school
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_diploma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ models:
{{ doc(var('edu:custom_docs:fct_student_diploma')) if var('edu:custom_docs:fct_student_diploma', '') }}

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_discipline_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ models:
tags: ['discipline']
enabled: "{{ var('src:domain:discipline:enabled', True) }}"
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ models:
*Primary Key:* k_student, k_student_xyear, k_discipline_actions_event

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ models:
`k_student, k_discipline_incident, behavior_type` -- There is one record per student, year, incident ID, school, and behavior.

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ models:
`k_student, k_discipline_incident` -- There is one record per student, year, incident ID, and school.

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ models:
*Primary Key:* k_student, k_student_xyear, k_discipline_incident

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_student_xyear
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_grades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ models:
config:
tags: ['core', 'course']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_school
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
enabled: "{{ var('src:program:homeless:enabled', True) }}"

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
enabled: "{{ var('src:program:language_instruction:enabled', True) }}"

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ models:
config:
tags: ['core', 'course']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_school
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
enabled: "{{ var('src:program:migrant_education:enabled', True) }}"

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_objective_assessment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ models:
description: >
Generated primary key composed of `tenant_code`, `api_year`, `studentAssessmentIdentifier`, and `objectiveAssessmentIdentificationCode`.
tests:
- unique
- edu_edfi_source.edu_unique
- name: k_objective_assessment
- name: k_student_assessment
- name: k_assessment
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_parent_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_parent
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_program_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_program_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ models:


tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_school_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_school
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_school
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
enabled: "{{ var('src:program:food_service:enabled', True) }}"

tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_program
Expand Down
2 changes: 1 addition & 1 deletion models/core_warehouse/fct_student_section_association.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ models:
config:
tags: ['core']
tests:
- dbt_utils.unique_combination_of_columns:
- edu_edfi_source.edu_unique_combination_of_columns:
combination_of_columns:
- k_student
- k_course_section
Expand Down
Loading