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

Fix H5P resources not showing completion when all questions answered correctly #13137

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

rtibbles
Copy link
Member

Summary

  • It seems like newer H5P resources make more use of the answered event which we were not previously handling for triggering completion
  • We remove the debounce from the answered to ensure quick processing of completion
  • Add handling in the progress calculation for xAPI for the answered event - checking if it has result.completion set to true.

References

Fixes #13010

Reviewer guidance

I don't think we've seen this in the QA channel, as I think older H5P resources didn't use this specific event. I will share the channel_id on slack for testing this.

Allow completion to be triggered by 'answered' event.
Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes all LGTM. I see that you pinged @pcenov & @radinamatic on Slack w/ a channel for the testing so I'll leave final approval to them.

One question that comes to mind - what are the other consequences of removing it from the debounced verbs list? Is it just getting spammy logs in the console or something?

@rtibbles
Copy link
Member Author

rtibbles commented Mar 4, 2025

The main possible downside is more data in the extra fields. I think we can assume it will be OK unless we get reports otherwise.

@pcenov pcenov self-requested a review March 5, 2025 11:26
Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no regressions observed while manually testing.

@rtibbles rtibbles merged commit b0eefc7 into learningequality:develop Mar 5, 2025
37 checks passed
@rtibbles rtibbles deleted the h5p_gotta_bounce branch March 5, 2025 16:17
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.

H5P Progress tracking issue for drag and drop question types
3 participants