mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
feat: show n_size on parent graph
This commit is contained in:
parent
e38bdfb761
commit
a5b3cf311c
2 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ module Analyze
|
|||
end
|
||||
|
||||
def show_popover?
|
||||
%i[student teacher].include? type
|
||||
%i[student teacher parent].include? type
|
||||
end
|
||||
|
||||
def popover_content(academic_year)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ module Analyze
|
|||
def type
|
||||
:parent
|
||||
end
|
||||
|
||||
def n_size(measure:, school:, academic_year:)
|
||||
SurveyItemResponse.where(survey_item: scale.survey_items.parent_survey_items, school:, academic_year:).select(:response_id).distinct.count
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue