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

Don't send no data to the LRS in the event JSON encode fails. #364

Merged
merged 7 commits into from
Dec 21, 2018

Conversation

garemoko
Copy link
Contributor

Description

  • Previously in the event that JSON encode failed, the plugin would still try to send the data to the LRS. This change means that we at least check that something is being sent, even if we don't check that it's valid xapi.

If we want to do more careful checking of the data before sending it, we should consider leaning on TinCanPHP.

Please squash when merging.

Related Issues

PR Type
Fix

@ryasmi ryasmi merged commit 29ae19b into xAPI-vle:master Dec 21, 2018
@HT2Bot
Copy link
Member

HT2Bot commented Dec 21, 2018

🎉 This PR is included in version 4.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

garemoko added a commit to garemoko/moodle-logstore_xapi that referenced this pull request Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants