adaptlearning / adapt-contrib-xapi

TinCan/xAPI extension for the Adapt Framework
GNU General Public License v3.0
12 stars 27 forks source link

Assessment questions not restoring with xAPI on SCORM Cloud #89

Closed RobertPeek closed 1 year ago

RobertPeek commented 3 years ago

Assessments do not restore when returning with a bookmark on ScormCloud.

environment

Steps to reproduce

Build a course with 2 pages, one page having an assessment in. Launch the course on Scorm cloud and visit the page with the assessment in. Do not answer any questions and exit the course. Relaunch the course and return to bookmark. The course then fails to load (please see screenshot below).

image

I've done a bit of debugging and can see that the Assessment plugin is falling over as there are no child models on the assessment article when the page loads https://github.com/adaptlearning/adapt-contrib-assessment/blob/c75001197d6141dffaf209c7657cdea27abb39d0/js/adapt-assessmentArticleModel.js#L104

If you do try and answer some of the questions, these do get restored ok on revisiting, so it does seem to be just the unanswered questions that do not get restored.

This issue does seem to be isolated to a course using xAPI as all the model data gets restored correctly with Spoor:

image

oliverfoster commented 2 years ago

Similar issue raised in the forum https://community.adaptlearning.org/mod/forum/discuss.php?d=4127

oliverfoster commented 1 year ago

closed as stale