mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
average those groupings and the way up the framework. Likert scores for a survey_item are averaged. Then all the survey_items in a scale are averaged. Then student scales in a measure are averaged. And teacher scales in a measure are averaged. Then the average of those two calculations becomes the score for a measure. Then the measures in a subcategory are averaged.
14 lines
460 B
Ruby
14 lines
460 B
Ruby
class OverviewController < SqmApplicationController
|
|
def index
|
|
@variance_chart_row_presenters = Measure.all.map(&method(:presenter_for_measure))
|
|
@category_presenters = Category.sorted.map { |category| CategoryPresenter.new(category: category) }
|
|
end
|
|
|
|
private
|
|
|
|
def presenter_for_measure(measure)
|
|
score = measure.score(school: @school, academic_year: @academic_year)
|
|
|
|
VarianceChartRowPresenter.new(measure: measure, score: score)
|
|
end
|
|
end
|