-
Notifications
You must be signed in to change notification settings - Fork 7
Feature/sc descriptor mapping #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
469770e
490093b
cb3f90f
96b2ada
5fc08ab
2241ac6
30c1e8e
1fb434d
ce9be35
60b8674
73a6fa8
f9f265e
4a47068
a973a94
b5a16bd
d1f09e4
4da714f
dc793fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| display_name: "PSAT_SAT" | ||
| path: "assessments/PSAT_SAT" | ||
| valid_edfi: ">=3.0" | ||
| report_resources: ["studentAssessments"] | ||
| input_files: | ||
| - display_name: "Assessment data" | ||
| env_var: "INPUT_FILE" | ||
| is_required: true | ||
| file_type: ["csv", "txt"] | ||
|
||
| input_params: | ||
| - display_name: "School Year" | ||
| env_var: "API_YEAR" | ||
| is_required: true | ||
| descriptor_mapping_files: ["academicSubjectDescriptors.csv", "gradeLevelDescriptors.csv"] | ||
gnguyen87 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,6 +105,9 @@ sources: | |
| assessmentReportingMethodDescriptors: | ||
| file: ./seeds/assessmentReportingMethodDescriptors.csv | ||
| header_rows: 1 | ||
| assessmentCategoryDescriptors: | ||
| file: ./seeds/assessmentCategoryDescriptors.csv | ||
| header_rows: 1 | ||
| gradeLevelDescriptors: | ||
| file: ./seeds/gradeLevelDescriptors.csv | ||
| header_rows: 1 | ||
|
|
@@ -120,7 +123,7 @@ transformations: | |
| input: | ||
| source: $sources.input | ||
| operations: [] | ||
|
|
||
| psat_sat_student_assessment: | ||
| source: $transformations.input | ||
| operations: | ||
|
|
@@ -230,7 +233,6 @@ transformations: | |
| schoolYear: ${API_YEAR} | ||
| assessmentIdentifier: "{%raw%}${TEST_TYPE}_{{map_year_to_version(administrationDate)}}{%endraw%}" | ||
| namespace: "uri://collegeboard.org" | ||
| assessmentCategoryDescriptor: "${DESCRIPTOR_NAMESPACE}/AssessmentCategoryDescriptor#College entrance exam" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jalvord1 is |
||
| studentAssessmentIdentifier: "{%raw%}{{studentUniqueId}}_{{administrationDate}}_${TEST_TYPE}{%endraw%}" | ||
| - operation: join | ||
| sources: | ||
|
|
@@ -247,7 +249,7 @@ transformations: | |
| subject_json: > | ||
| {%raw-%} | ||
| { | ||
| "academicSubjectDescriptor": "{{academicSubjectDescriptor}}" | ||
| "academicSubjectDescriptor": "{{edfi_descriptor}}" | ||
| }, | ||
| {%-endraw%} | ||
| - operation: modify_columns | ||
|
|
@@ -268,13 +270,13 @@ transformations: | |
| - operation: distinct_rows | ||
| columns: | ||
| - assessmentIdentifier | ||
| - gradeLevelDescriptor | ||
| - edfi_descriptor | ||
| - operation: add_columns | ||
| columns: | ||
| grade_json: > | ||
| {%raw-%} | ||
| { | ||
| "gradeLevelDescriptor": "{{gradeLevelDescriptor}}" | ||
| "gradeLevelDescriptor": "{{edfi_descriptor}}" | ||
| }, | ||
| {%-endraw%} | ||
| - operation: modify_columns | ||
|
|
@@ -307,6 +309,12 @@ transformations: | |
| - operation: add_columns | ||
| columns: | ||
| assessmentFamily: "{%raw%}{{ assessmentIdentifier.split('_')[0] }}{%endraw%}" | ||
| - operation: join | ||
| sources: | ||
| - $sources.assessmentCategoryDescriptors | ||
| join_type: inner | ||
| left_key: assessmentIdentifier | ||
| right_key: assessmentIdentifier | ||
|
|
||
|
|
||
| destinations: | ||
|
|
@@ -331,3 +339,4 @@ destinations: | |
| source: $sources.performanceLevelDescriptors | ||
| template: ./templates/performanceLevelDescriptors.jsont | ||
| extension: jsonl | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| assessmentIdentifier,edfi_descriptor | ||
| PSAT 8/9_1600,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_1600,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_1600,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_1600,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 8/9_2400,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_2400,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_2400,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_2400,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 8/9_Adaptive,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_Adaptive,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_Adaptive,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_Adaptive,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| assessmentIdentifier,assessmentTitle,namespace,assessmentCategoryDescriptor | ||
| PSAT 8/9_1600,PSAT 8/9,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_1600,PSAT 10,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_1600,PSAT/NMSQT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_1600,SAT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 8/9_2400,PSAT 8/9,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_2400,PSAT 10,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_2400,PSAT/NMSQT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_2400,SAT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 8/9_Adaptive,PSAT 8/9,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT 10_Adaptive,PSAT 10,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| PSAT/NMSQT_Adaptive,PSAT/NMSQT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| SAT_Adaptive,SAT,uri://collegeboard.org,uri://ed-fi.org/AssessmentCategoryDescriptor#College entrance exam | ||
| assessmentIdentifier,assessmentTitle,namespace | ||
| PSAT 8/9_1600,PSAT 8/9,uri://collegeboard.org | ||
| PSAT 10_1600,PSAT 10,uri://collegeboard.org | ||
| PSAT/NMSQT_1600,PSAT/NMSQT,uri://collegeboard.org | ||
| SAT_1600,SAT,uri://collegeboard.org | ||
| PSAT 8/9_2400,PSAT 8/9,uri://collegeboard.org | ||
| PSAT 10_2400,PSAT 10,uri://collegeboard.org | ||
| PSAT/NMSQT_2400,PSAT/NMSQT,uri://collegeboard.org | ||
| SAT_2400,SAT,uri://collegeboard.org | ||
| PSAT 8/9_Adaptive,PSAT 8/9,uri://collegeboard.org | ||
| PSAT 10_Adaptive,PSAT 10,uri://collegeboard.org | ||
| PSAT/NMSQT_Adaptive,PSAT/NMSQT,uri://collegeboard.org | ||
| SAT_Adaptive,SAT,uri://collegeboard.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jalvord1 I suppose we'll want a different display name here a la "PSAT/SAT" or something that looks a bit more human