fix: make sure all likert scores get counted even when the survey item id has different capitalization. Add tests for uploading parent data. Change the parent response rate calcuation to count all students in the school instead of just for the grades that were given the student survey

This commit is contained in:
Nelson Jovel 2024-11-08 15:36:34 -08:00
parent 8984023aa4
commit e741b60bec
10 changed files with 118 additions and 8 deletions

View file

@ -47,10 +47,6 @@ class Overview::OverviewPresenter
ParentResponseRatePresenter.new(school: @school, academic_year: @academic_year)
end
def parent_response_rate_presenter
ResponseRatePresenter.new(focus: :parent, school: @school, academic_year: @academic_year)
end
def presenter_for_measure(measure)
score = measure.score(school: @school, academic_year: @academic_year)

View file

@ -22,3 +22,4 @@ class ParentResponseRatePresenter < ResponseRatePresenter
"parent"
end
end

View file

@ -40,3 +40,4 @@ class StudentResponseRatePresenter < ResponseRatePresenter
"student"
end
end

View file

@ -18,3 +18,4 @@ class TeacherResponseRatePresenter < ResponseRatePresenter
"teacher"
end
end