app/lib/insight_students_with_high_absences.rb
# Students who've been commented on in Insights recently (for any reason)
# This includes any kind of comment since we don't want folks to
# enter notes inaccurately as "SST Meetings" when they aren't really, just to
# make this list seem in better shape.
Students who've been commented on in Insights recently (for any reason)
This includes any kind of comment since we don't want folks to
enter notes inaccurately as "SST Meetings" when they aren't really, just to
make this list seem in better shape.
Students who ' ve been commented on in Insights recently ( for any reason ) This includes any kind of comment since we don ' t want folks to enter notes inaccurately as " SST Meetings " when they aren ' t really just to make this list seem in better shape .
def recently_commented_student_ids(student_ids, time_threshold)
    recent_notes = EventNote
      .where(is_restricted: false)
      .where(student_id: student_ids)
      .where('recorded_at >= ?', time_threshold)
    recent_notes.map(&:student_id).uniq
  end
def recently_commented_student_ids ( student_ids , time_threshold ) recent_notes = EventNote . where ( is_restricted : false ) . where ( student_id : student_ids ) . where ( 'recorded_at >= ?' , time_threshold ) recent_notes . map ( & :student_id ) . uniq end
Students who've been commented on in Insights recently (for any reason)
This includes any kind of comment since we don't want folks to
enter notes inaccurately as "SST Meetings" when they aren't really, just to
make this list seem in better shape.
Students who ' ve been commented on in Insights recently ( for any reason ) This includes any kind of comment since we don ' t want folks to enter notes inaccurately as " SST Meetings " when they aren ' t really just to make this list seem in better shape .
student_ids
<not_specific>
time_threshold
<not_specific>