adaptlearning / adapt-contrib-spoor

A basic scorm tracking plugin for Adapt
GNU General Public License v3.0
14 stars 42 forks source link

TD-2109 Update from original plus AICC function refactor #293

Closed paulstevendev closed 1 year ago

paulstevendev commented 1 year ago

https://hee-tis.atlassian.net/browse/TD-2109)

Update

Bringing in all the changes from the original adapt-contrib-spoor repo that this was forked from Refactor the processResponse function in aiccLMS.js with the addition of trim to remove leading and trailing spaces from the key. The refactor also resolved an issue with one LMS where they were only passing a single group [CORE] which was breaking the code. The update from the original includes a fix for the suspend data issue caused when the structure of a session has been updated. The code includes a conditional for each component within a tracked block and will just return if it includes suspend data for a component that no longer exists.

Testing

Sense check the processResponse function Additional testing could include publishing a session in Adapt Builder (dev environment) and testing the SCORM and AICC tracking. Paul Steven has already done this. Also Clare Smith has tested one scenario (Asssessment type session) on the Hub and via Moodle for AICC testing.