![]() closes EVAL-4268 refs EVAL-4257 flag=none When commenting on a submission via the API, if the comment is invalid (for instance, if the "attempt" field is greater than the associated submission's attempt), an internal server error occurs. This commit fixes that problem and correctly returns a "bad request" response. Test Plan: - specs pass Change-Id: I15eb222ce0f8aa3c26bcc47a598cbf841c6aefd9 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349834 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Spencer Olson <solson@instructure.com> Product-Review: Cameron Ray <cameron.ray@instructure.com> Reviewed-by: Derek Williams <derek.williams@instructure.com> Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com> |
||
---|---|---|
.. | ||
anonymous_moderated_marking | ||
account_grade_status.rb | ||
learning_outcome_context.rb | ||
multiple_grading_periods_within_controller.rb | ||
provisional_grades.rb | ||
redo_submission.rb | ||
soft_deletion.rb | ||
update_submission.rb |