Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions assessments/PSAT_SAT/_metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
display_name: "PSAT_SAT"
Copy link
Contributor

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

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"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this true, or is the input file for this assessment always a CSV?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has always been the file_type options across bundles so i believe it is true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it depends on the input defined in earthmover.yaml. For example, STAAR_Interim only takes CSVs and from what I can tell the same is true here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this bundle will only accept a csv file!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be updated now!

input_params:
- display_name: "School Year"
env_var: "API_YEAR"
is_required: true
descriptor_mapping_files: ["academicSubjectDescriptors.csv", "gradeLevelDescriptors.csv"]
19 changes: 14 additions & 5 deletions assessments/PSAT_SAT/earthmover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -120,7 +123,7 @@ transformations:
input:
source: $sources.input
operations: []

psat_sat_student_assessment:
source: $transformations.input
operations:
Expand Down Expand Up @@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jalvord1 is DESCRIPTOR_NAMESPACE something we need to account for? I see it still defaults to Ed-Fi

studentAssessmentIdentifier: "{%raw%}{{studentUniqueId}}_{{administrationDate}}_${TEST_TYPE}{%endraw%}"
- operation: join
sources:
Expand All @@ -247,7 +249,7 @@ transformations:
subject_json: >
{%raw-%}
{
"academicSubjectDescriptor": "{{academicSubjectDescriptor}}"
"academicSubjectDescriptor": "{{edfi_descriptor}}"
},
{%-endraw%}
- operation: modify_columns
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -331,3 +339,4 @@ destinations:
source: $sources.performanceLevelDescriptors
template: ./templates/performanceLevelDescriptors.jsont
extension: jsonl

2 changes: 1 addition & 1 deletion assessments/PSAT_SAT/seeds/academicSubjectDescriptors.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
assessmentIdentifier,academicSubjectDescriptor
assessmentIdentifier,edfi_descriptor
PSAT 8/9_1600,uri://ed-fi.org/AcademicSubjectDescriptor#Composite
PSAT/NMSQT_1600,uri://ed-fi.org/AcademicSubjectDescriptor#Composite
PSAT 10_1600,uri://ed-fi.org/AcademicSubjectDescriptor#Composite
Expand Down
13 changes: 13 additions & 0 deletions assessments/PSAT_SAT/seeds/assessmentCategoryDescriptors.csv
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
26 changes: 13 additions & 13 deletions assessments/PSAT_SAT/seeds/assessments.csv
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
2 changes: 1 addition & 1 deletion assessments/PSAT_SAT/seeds/gradeLevelDescriptors.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
psat_sat_grade,assessmentIdentifier,gradeLevelDescriptor
psat_sat_grade,assessmentIdentifier,edfi_descriptor
1,PSAT 8/9_1600,uri://ed-fi.org/GradeLevelDescriptor#Other
2,PSAT 8/9_1600,uri://ed-fi.org/GradeLevelDescriptor#Eighth grade
4,PSAT 8/9_1600,uri://ed-fi.org/GradeLevelDescriptor#Ninth grade
Expand Down
2 changes: 1 addition & 1 deletion assessments/PSAT_SAT/templates/assessments.jsont
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"assessmentFamily": "{{assessmentFamily}}",
"namespace": "{{namespace}}",
"assessedGradeLevels": [{{grade_json}}],
"assessmentCategoryDescriptor": "{{assessmentCategoryDescriptor}}",
"assessmentCategoryDescriptor": "{{edfi_descriptor}}",
"academicSubjects": [{{subject_json}}],
"scoreResults": [
{
Expand Down
4 changes: 2 additions & 2 deletions assessments/PSAT_SAT/templates/studentAssessments.jsont
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
"studentUniqueId": "{{studentUniqueId}}"
},
"administrationDate": "{{administrationDate}}",
{% if gradeLevelDescriptor != '' and gradeLevelDescriptor is not none and gradeLevelDescriptor | length %}
"whenAssessedGradeLevelDescriptor": "{{gradeLevelDescriptor}}",
{% if edfi_descriptor != '' and edfi_descriptor is not none and edfi_descriptor | length %}
"whenAssessedGradeLevelDescriptor": "{{edfi_descriptor}}",
{% endif %}
"scoreResults": [
{% for score in all_scores %}
Expand Down