Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add response to post save filter #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

KirkJohnson
Copy link
Contributor

This adds the LRS response object to the h5p-xapi-post-save filter. The response object contains the uuid which is passed back after being stored. The uuid is needed if you need to make updates or void a statement later so this simply makes the response available as a second parameter in the filter for projects to see and store needed info.

This creates an option in the settings page that allows alerts to either be displayed as an alert or written as console.log statements.  On a production site the error alerts could ruin user experience so this can be unchecked to give alerts without interferring with UX.
Upstream modified changes on code so this modifies our code to work with the way they changed theirs.
Adds lrs response to h5p-xapi-post-save filter so that if needing to store returned uuid for later voiding are modifying this is possible.
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