Skip to content

MDL-83243_404: Prevent loss of SCORM progress due to unstable network#10

Open
sam-smucker wants to merge 2 commits into
MOODLE_404_STABLEfrom
MDL-83243_404
Open

MDL-83243_404: Prevent loss of SCORM progress due to unstable network#10
sam-smucker wants to merge 2 commits into
MOODLE_404_STABLEfrom
MDL-83243_404

Conversation

@sam-smucker
Copy link
Copy Markdown
Owner

No description provided.

On pages using the session manager's keepalive logic, an unstable network
connection should cause an alert modal to appear warning the user that
their learning progress may not be saved. This doesn't always happen
because the modal contents must be fetched with a network request. This
commit pre-fetches the alert modal on page load to ensure that it is
available if network connection is lost, and if two consecutive requests
to touch the session fail, the modal will force the user to leave the
page, either by reloading or redirection.
When a user is on a SCORM player page and has a persistently
unstable network connection, their Moodle session can expire
and/or the SCORM package can fail to save their progress.
This change will force the user to exit the SCORM player page
to avoid losing unsaved progress.
@sam-smucker sam-smucker changed the title MDL-83243_405: Prevent loss of SCORM progress due to unstable network MDL-83243_404: Prevent loss of SCORM progress due to unstable network Oct 7, 2025
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.

1 participant