mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
chore: show analyze page without errors
This commit is contained in:
parent
e4e6a5c7fb
commit
b47f8d2f61
84 changed files with 2243 additions and 1792 deletions
|
|
@ -45,7 +45,7 @@ module Dashboard
|
|||
@empty_dataset ||= Hash.new do |memo, (school, academic_year)|
|
||||
memo[[school, academic_year]] = measures.none? do |measure|
|
||||
response_rate = measure.subcategory.response_rate(school:, academic_year:)
|
||||
response_rate.meets_student_threshold || response_rate.meets_teacher_threshold || measure.sufficient_admin_data?(school:, academic_year:)
|
||||
response_rate.meets_student_threshold? || response_rate.meets_teacher_threshold? || measure.sufficient_admin_data?(school:, academic_year:)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ module Dashboard
|
|||
@empty_survey_dataset ||= Hash.new do |memo, (school, academic_year)|
|
||||
memo[[school, academic_year]] = measures.none? do |measure|
|
||||
response_rate = measure.subcategory.response_rate(school:, academic_year:)
|
||||
response_rate.meets_student_threshold || response_rate.meets_teacher_threshold
|
||||
response_rate.meets_student_threshold? || response_rate.meets_teacher_threshold?
|
||||
end
|
||||
end
|
||||
@empty_survey_dataset[[school, academic_year]]
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
module Dashboard
|
||||
module HeaderHelper
|
||||
def link_to_overview(district:, school:, academic_year:)
|
||||
"/districts/#{district.slug}/schools/#{school.slug}/overview?year=#{academic_year.range}"
|
||||
district_school_overview_index_path(district, school, year: academic_year.range)
|
||||
end
|
||||
|
||||
def link_to_browse(district:, school:, academic_year:)
|
||||
"/districts/#{district.slug}/schools/#{school.slug}/browse/teachers-leadership?year=#{academic_year.range}"
|
||||
district_school_category_path(district, school, { year: academic_year.range, id: "teachers-leadership" })
|
||||
end
|
||||
|
||||
def link_to_analyze(district:, school:, academic_year:)
|
||||
year = academic_year.range
|
||||
"/districts/#{district.slug}/schools/#{school.slug}/analyze?year=#{year}&category=1&academic_years=#{year}"
|
||||
district_school_analyze_index_path(district, school, { year:, category: 1, academic_years: year })
|
||||
end
|
||||
|
||||
def district_url_for(district:, academic_year:)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue