Assignments-Grader: not loading - TypeError: Cannot read properties of undefined (reading 'resubmitsAllowed')
Description
Attachments
- 15 Jun 2023, 10:56 PM
- 15 Jun 2023, 09:51 PM
- 13 Jun 2023, 11:24 PM
- 13 Jun 2023, 11:24 PM
depends on
is duplicated by
is related to
Activity

Andrea Schmidt December 14, 2023 at 1:19 AM
Verified on 22x: https://qa22-mysql.nightly.sakaiproject.org/, build: ae15e23e

Thomas Kelsey August 16, 2023 at 9:48 PM
Verified on 23.x, https://qa23-maria.nightly.sakaiproject.org , build: 2ef4397b
Checked with students with a submission and without , both worked as expected

Andrea Schmidt June 17, 2023 at 2:07 PM
Verified on 24x: https://trunk-maria.nightly.sakaiproject.org/, build: 1dabdc85

Zhuo Yang June 16, 2023 at 3:17 AM
The issue arises because we are retrieving the title of the site instead of its Id.
In course sites created by the Job Scheduler, there is no error since site.getTitle()
is the same as site.getId()
. However, in manually created course sites, site.getTitle()
differs from site.getId()
. @Adrian Fish

Automation for Jira June 15, 2023 at 11:53 PM
A pull request has been created, "SAK-49015 Assignments Grader not loading", you can see it at https://github.com/sakaiproject/sakai/pull/11689
Details
Details
Priority
Affects versions
Fix versions
23 Status
22 Status
Components
Assignee

Reporter

Currently, this is only an issue on 24x. When clicking on a student’s name to grade an assignment, the grader does not load and there is a console error:
sakai-gradable-data-mixin.js?version=c881372f:59 TypeError: Cannot read properties of undefined (reading 'resubmitsAllowed') at set submission [as submission] (sakai-grader.js?version=c881372f:259:46) at sakai-gradable-data-mixin.js?version=c881372f:52:27 (anonymous) @ sakai-gradable-data-mixin.js?version=c881372f:59 Promise.catch (async) (anonymous) @ sakai-gradable-data-mixin.js?version=c881372f:59 _loadGradableData @ sakai-gradable-data-mixin.js?version=c881372f:7 (anonymous) @ sakai-grader.js?version=c881372f:300 Promise.then (async) _loadData @ sakai-grader.js?version=c881372f:299 set submissionId @ sakai-grader.js?version=c881372f:240 _attributeToProperty @ updating-element.js?version=c881372f:496 attributeChangedCallback @ updating-element.js?version=c881372f:441 (anonymous) @ sakai-grader.js?version=c881372f:912