Skip to content

Add response to post save filter#11

Open
KirkJohnson wants to merge 5 commits intotunapanda:masterfrom
uhm-coe:add_response_to_post_save_filter
Open

Add response to post save filter#11
KirkJohnson wants to merge 5 commits intotunapanda:masterfrom
uhm-coe:add_response_to_post_save_filter

Conversation

@KirkJohnson
Copy link
Copy Markdown
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