Skip to content

Commit 09821b8

Browse files
Update base and stg exam results and stg exams, changelog (#183)
* Update base and stg exam results and stg exams, changelog * Correct change log * typo descriptor --------- Co-authored-by: Rob Little <rlittle@edanalytics.org>
1 parent 117b481 commit 09821b8

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Unreleased
22
## New features
3+
- Update the following TPDM/EPDM base and stage models:
4+
- base_epdm__certification_exam_results
5+
- stg_epdm__certification_exams
6+
- stg_epdm__certification_exam_results
37
## Under the hood
48
## Fixes
59

6-
# edu_edfi_source v0.6.1
7-
## Under the hood
8-
- `extract_descriptor()` macro now correctly handles descriptors in cases where the field name doesn't match the underlying descriptor code (e.g. birthCountryDescriptor -> countryDescriptor)
9-
1010
# edu_edfi_source v0.6.0
1111
## New features
1212
- Add base/stg models for new SEDM `student_ieps` and `iep_events`
@@ -296,4 +296,4 @@
296296
## Fixes
297297

298298
# edu_edfi_source v0.1.0
299-
Initial release
299+
Initial release

models/staging/tpdm/base/base_tpdm__certification_exam_results.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ renamed as (
2121
-- non-identity components
2222
v:attemptNumber::int as attempt_number,
2323
v:certificationExamPassIndicator::boolean as certification_exam_pass_indicator,
24+
v:certificationExamScore::number as certification_exam_score,
2425
-- descriptors
26+
{{ extract_descriptor('v:certificationExamStatusDescriptor::string') }} as certification_exam_status_descriptor,
2527
{{ extract_descriptor('v:personReference:sourceSystemDescriptor::string') }} as person_source_system_descriptor,
2628
-- references
2729
v:certificationExamReference as certification_exam_reference,

models/staging/tpdm/stage/stg_tpdm__certification_exam_results.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ keyed as (
1414
) }} as k_certification_exam_result,
1515
{{ gen_skey('k_person') }},
1616
{{ gen_skey('k_certification_exam') }},
17-
certification_exam_results.*
17+
certification_exam_results.*,
18+
certification_exam_results.api_year as school_year
1819
{{ extract_extension(model_name=this.name, flatten=True) }}
1920
from certification_exam_results
2021
),
@@ -27,4 +28,4 @@ deduped as (
2728
}}
2829
)
2930
select * from deduped
30-
where not is_deleted
31+
where not is_deleted

models/staging/tpdm/stage/stg_tpdm__certification_exams.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ keyed as (
99
'lower(certification_exam_id)',
1010
'lower(namespace)']
1111
) }} as k_certification_exam,
12-
certification_exams.*
12+
certification_exams.*,
13+
certification_exams.api_year as school_year
1314
{{ extract_extension(model_name=this.name, flatten=True) }}
1415
from certification_exams
1516
),
@@ -22,4 +23,4 @@ deduped as (
2223
}}
2324
)
2425
select * from deduped
25-
where not is_deleted
26+
where not is_deleted

0 commit comments

Comments
 (0)