Skip to content

Conversation

@suhaibabsi-inst
Copy link
Contributor

@suhaibabsi-inst suhaibabsi-inst commented Feb 4, 2026

refs: MBL-19657
affects: Teacher
builds: Teacher
release note: Fixed issue where modified late seconds not being saved successfully on SpeedGrader when submitted.

This is to fix non-updating late seconds override for a submission issue. The change was framed in this minimal way after investigating the logic on the code responsible for dealing with this request here:

https://github.com/instructure/canvas-lms/blob/a5efca0d369decb17e8be8f495f4c2cb7425b056/app/controllers/submissions_api_controller.rb#L985

Clearly it requires that we include late_policy_status value to be late in order to update the value of seconds_late_override on submissions. And this also been expressed in multiple tests like those:

https://github.com/instructure/canvas-lms/blob/a5efca0d369decb17e8be8f495f4c2cb7425b056/spec/apis/v1/submissions_api_spec.rb#L4569

https://github.com/instructure/canvas-lms/blob/a5efca0d369decb17e8be8f495f4c2cb7425b056/spec/apis/v1/submissions_api_spec.rb#L4546

Test Plan

1- Open a late submission in SpeedGrader
2- Try editing late days on UI.
3- Upon request is done (load indicator disappearing), the field must show the edited value.
4- Try switching back and forth between statuses No grade, excused, { .. custom statuses} then set it to late and try edit late days again.
5- All functions should work as expected upon step 4.

Checklist

  • Follow-up e2e test ticket created
  • A11y checked
  • Tested on phone
  • Tested on tablet
  • Tested in dark mode
  • Tested in light mode
  • Approve from product

refs: MBL-19657
affects: Teacher
builds: Teacher
release note: Fixed issue where modified late seconds not being saved successfully on SpeedGrader when submitted.
@suhaibabsi-inst suhaibabsi-inst self-assigned this Feb 4, 2026
@inst-danger
Copy link
Contributor

inst-danger commented Feb 4, 2026

Release Note:

Fixed issue where modified late seconds not being saved successfully on SpeedGrader when submitted.

Affected Apps: Teacher

Builds: Teacher

MBL-19657

Coverage New % Master % Delta
Canvas iOS 91.43% 81.06% 10.37%

Generated by 🚫 dangerJS against 8b5f3e7

@inst-danger
Copy link
Contributor

inst-danger commented Feb 4, 2026

Builds

Commit: Unit tests (8b5f3e7)
Build Number: 1257
Built At: Feb 05 06:56 CET (02/04 10:56 PM MST)

Teacher

@suhaibabsi-inst suhaibabsi-inst marked this pull request as ready for review February 5, 2026 05:57
self.posted_grade = posted_grade
self.seconds_late_override = seconds_late_override

if let seconds = seconds_late_override, seconds >= 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seconds >= 0 to match the same behavior found on Web (it accepts 0 for late days field without changing the late status).

Copy link
Collaborator

@vargaat vargaat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA+1

Copy link
Contributor

@rh12 rh12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code + 1

@rh12 rh12 merged commit e623743 into master Feb 9, 2026
8 checks passed
@rh12 rh12 deleted the bugfix/MBL-19657-SpeedGrader-NonSaving-LateSeconds-When-Submitted branch February 9, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants