Skip to content

Commit 1f2ef01

Browse files
author
Stanley Stuart
committed
load submission needs grading notification
test plan: - As a teacher, create a quiz with an essay question and publish the quiz. Set your notification preferences for grading to "Immediately". - As a student, take the quiz. - As the teacher, you should get a notification that the submission needs reviewing. fixes CNVS-6524 Change-Id: I185a10175fcc9528100a1157049ecca5ffcccff5 Reviewed-on: https://gerrit.instructure.com/22642 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Derek DeVries <ddevries@instructure.com> QA-Review: Myller de Araujo <myller@instructure.com> Product-Review: Stanley Stuart <stanley@instructure.com>
1 parent d919995 commit 1f2ef01

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class LoadSubmissionNeedsGradingNotification < ActiveRecord::Migration
2+
3+
tag :postdeploy
4+
5+
def self.up
6+
Canvas::MessageHelper.create_notification({
7+
name: 'Submission Needs Grading',
8+
delay_for: 0,
9+
category: 'Grading'
10+
})
11+
end
12+
13+
def self.down
14+
Notification.find_by_name('Submission Needs Grading').destroy
15+
end
16+
end

0 commit comments

Comments
 (0)