canvas-lms/public
Gary Mei 85ee64f3ae allow provisional graders to delete grades
When a provisional grade has been left, it should be deletable by the
provisional grader who left it. Invalid grades still be unacceptable,
but now "no provisional grade" is considered valid. Deleting a
provisional grade will not change the fact that the provisional
grader took up a moderation slot.

A provisional grade cannot be deleted nor changed after the
provisional grader has been been selected by the final grader in the
moderation page. After grades have posted, grades can be deleted
or changed.

fixes GRADE-1637

Test Plan
- Create a moderated assignment with just 1 number of graders.
- As the provisional grader, launch SpeedGrader and give a grade to a
  student. Tab away.
- Delete the provisional grade; there should be no error messages.
- Enter a valid, non-empty grade.
- Replace the valid provisional grade with an invalid provisional grade
  (e.g. "asdf"). There should be an error message, and the
  provisional grade should have reverted to the last valid provisional
  grade.

- Delete the provisional grade.
- As another provisional grader, launch SpeedGrader and attempt to
  leave a provisional grade. There should be an error message stating
  that the max number of graders has already been reached.

- Leave a provisional grade again, as the first provisional grader.
- As the final grader, open the moderation page and select the
  provisional grader.
- As the provisional grader, attempt the delete the provisional
  grade. It should have an error message.
- As the provisional grader, attempt to change the provisional grade.
  It should have an error message.

- As the final grader, post the grades.
- As the provisional grader, attempt to delete the grade. It should be
  okay.
- As the provisional grader, attempt to leave and change a grade. It
  should be okay.

Change-Id: I169ac65a5d8785007b3c71aed87bbef968c86e9e
Reviewed-on: https://gerrit.instructure.com/168804
Tested-by: Jenkins
Reviewed-by: Adrian Packel <apackel@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
2018-10-30 19:34:18 +00:00
..
file_removed Fix typo in public/file_removed/file_removed.pdf 2018-04-05 16:54:38 +00:00
fonts Use ui-icons instead of inst-icons for icon font 2018-05-29 20:57:04 +00:00
images Display billboard when first customizing ratings 2018-06-14 15:33:40 +00:00
javascripts allow provisional graders to delete grades 2018-10-30 19:34:18 +00:00
media_record switch to the speex codec for the flash recording widget 2015-04-23 16:36:30 +00:00
partials UI created for Course Visibility Settings 2016-08-23 15:35:09 +00:00
web-app-manifest use the official android way of doing app install banners 2016-10-28 21:13:46 +00:00
422.html
500.html replace all .button(s) with .btn 2012-11-14 13:29:30 -07:00
_crossdomain.xml
apple-touch-icon.png ThemeEditor: fix 404 to default preview images 2015-08-05 22:52:58 +00:00
dimdim_welcome.html
drawing.html
enable-javascript.html change name of javascript-is-required.html to enable-javascript.html. 2012-02-16 14:28:30 -07:00
equella_cancel.html
equella_success.html
favicon.ico provide high-res, color-coded favicons 2014-06-13 22:03:14 +00:00
ie-9-is-not-supported.html send ie9 to the "not supported" page we send ie8 to 2016-05-06 19:28:52 +00:00
loading_submission.html
robots.txt
simple_response.json