canvas-lms/app/models/alerts
Simon Williams e8b5f7d615 fix teacher interaction report to work with submission comments
The submission_comments table has a `recipient_id` column which the code
was assuming would be the user receiving the comment.  This is actual
a denomralized field, since the comment is also attached to a submission
object and the recipient of the comment would always be the same as the
owner of the submission.  Unfortunately, this field never got populated,
so code that assumed it exist failed.  Rather than fully populate it,
this commit changes the code to query against the submission owner
directly.

fixes CNVS-15315

test plan:
- as a teacher in a course with an assignment
- go to speedgrader and leave a comment for a student
- go to the course roster page and click on the teacher
- click to see "student interactions" in the right sidebar
- there should be a "last interaction time" that matches the time you
  left the comment in speedgrader

Change-Id: Ie786efc7ae073aafd96662f52d2dbd27c27332e2
Reviewed-on: https://gerrit.instructure.com/48207
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2015-02-06 18:54:59 +00:00
..
delayed_alert_sender.rb gemify broadcast policy 2014-09-24 11:35:33 +00:00
interaction.rb fix teacher interaction report to work with submission comments 2015-02-06 18:54:59 +00:00
ungraded_count.rb Refactor alert creation to remove unnecessary code 2014-05-02 21:48:42 +00:00
ungraded_timespan.rb Refactor alert creation to remove unnecessary code 2014-05-02 21:48:42 +00:00
user_note.rb remove rails 2 support 2014-08-06 18:16:19 +00:00