Skip to content

Commit e1e89a9

Browse files
authored
Feature/ds5 enrollment updates (#147)
* add new stuedorg fields * stuSchoolAssoc new cols * Update CHANGELOG.md * Update dbt_project.yml * rearrange
1 parent 8d53c80 commit e1e89a9

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Unreleased
22

33
## New features
4-
- Add Databricks platform compatibility
5-
- The only potentially breaking change: `base_ef3__discipline_incidents.v:incidentTime` datatype switched from time to string.
6-
74
## Under the hood
85
## Fixes
96

7+
# edu_edfi_source v0.5.0
8+
## New features
9+
- Add Databricks platform compatibility
10+
- The only potentially breaking change: `base_ef3__discipline_incidents.v:incidentTime` datatype switched from time to string.
11+
- Add new optional fields in `student_education_organization_associations` and `student_school_associations` from Ed-Fi Data Standard v5:
12+
- stuEdOrg: `gender_identity`, `supporter_military_connection`
13+
- stuSchAssoc: `is_school_choice`, `school_choice_basis`, `enrollment_type`, `next_year_school_id`, `next_year_grade_level`
14+
1015
# edu_edfi_source v0.4.10
1116
## New features
1217
- Add base/stage model for `StudentCTEProgramAssociation`

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'edu_edfi_source'
4-
version: '0.4.10'
4+
version: '0.5.0'
55
require-dbt-version: [">=1.0.0", "<2.0.0"]
66

77
# This setting configures which "profile" dbt uses for this project.

models/staging/edfi_3/base/base_ef3__student_education_organization_associations.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ renamed as (
2121
v:hispanicLatinoEthnicity::boolean as has_hispanic_latino_ethnicity,
2222
v:loginId::string as login_id,
2323
v:profileThumbnail as profile_thumbnail_url,
24+
v:genderIdentity as gender_identity,
2425
-- descriptors
25-
{{ extract_descriptor('v:limitedEnglishProficiencyDescriptor::string') }} as lep_code,
26-
{{ extract_descriptor('v:sexDescriptor::string') }} as gender,
27-
{{ extract_descriptor('v:oldEthnicityDescriptor::string') }} as old_ethnicity,
26+
{{ extract_descriptor('v:limitedEnglishProficiencyDescriptor::string') }} as lep_code,
27+
{{ extract_descriptor('v:sexDescriptor::string') }} as gender,
28+
{{ extract_descriptor('v:oldEthnicityDescriptor::string') }} as old_ethnicity,
29+
{{ extract_descriptor('v:supporterMilitaryConnectionDescriptor::string') }} as supporter_military_connection,
2830
-- references
2931
v:studentReference as student_reference,
3032
v:educationOrganizationReference as education_organization_reference,

models/staging/edfi_3/base/base_ef3__student_school_associations.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,27 @@ renamed as (
2121
v:primarySchool::boolean as is_primary_school,
2222
v:repeatGradeIndicator::boolean as is_repeat_grade,
2323
v:schoolChoiceTransfer::boolean as is_school_choice_transfer,
24+
v:schoolChoice::boolean as is_school_choice,
2425
v:employedWhileEnrolled::boolean as is_employed_while_enrolled,
2526
v:fullTimeEquivalency::float as full_time_equivalency,
2627
v:termCompletionIndicator as completed_term,
2728
v:calendarReference:calendarCode::string as calendar_code,
2829
v:classOfSchoolYearTypeReference:schoolYear as class_of_school_year,
30+
v:nextYearSchoolReference:schoolId::integer as next_year_school_id,
2931
-- descriptors
3032
{{ extract_descriptor('v:residencyStatusDescriptor::string') }} as residency_status,
3133
{{ extract_descriptor('v:entryGradeLevelDescriptor::string') }} as entry_grade_level,
3234
{{ extract_descriptor('v:entryGradeLevelReasonDescriptor::string') }} as entry_grade_level_reason,
35+
{{ extract_descriptor('v:nextYearGradeLevelDescriptor::string') }} as next_year_grade_level,
3336
{{ extract_descriptor('v:entryTypeDescriptor::string') }} as entry_type,
3437
{{ extract_descriptor('v:exitWithdrawTypeDescriptor::string') }} as exit_withdraw_type,
3538
{{ extract_descriptor('v:graduationPlanReference:graduationPlanTypeDescriptor::string') }} as graduation_plan_type,
39+
{{ extract_descriptor('v:schoolChoiceBasisDescriptor::string') }} as school_choice_basis,
40+
{{ extract_descriptor('v:enrollmentTypeDescriptor::string') }} as enrollment_type,
3641
-- references
3742
v:calendarReference as calendar_reference,
3843
v:schoolReference as school_reference,
44+
v:nextYearSchoolReference as next_year_school_reference,
3945
v:studentReference as student_reference,
4046
v:graduationPlanReference as graduation_plan_reference,
4147
-- lists

0 commit comments

Comments
 (0)