canvas-lms/spec/shared_examples
Spencer Olson 63c7c640cc fix update submission internal server error
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>
2024-07-01 15:28:52 +00:00
..
anonymous_moderated_marking RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
account_grade_status.rb add permissions to account grade status models 2023-08-02 16:53:02 +00:00
learning_outcome_context.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
multiple_grading_periods_within_controller.rb fix grading periods within controller shared examples for ruby 3.x 2022-12-13 19:16:47 +00:00
provisional_grades.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
redo_submission.rb rubocop: prep for updating rubocop-rspec 2023-04-12 19:30:10 +00:00
soft_deletion.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
update_submission.rb fix update submission internal server error 2024-07-01 15:28:52 +00:00