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

issue/2747 Added _attemptStates save and restore #189

Merged
merged 2 commits into from
May 7, 2020

Conversation

olivermartinfoster
Copy link
Contributor

@olivermartinfoster olivermartinfoster commented May 6, 2020

#2747

Requires #2748 to framework for testing.
Built atop of #190, the old question state serialiser couldn't handle the more complicated data structure.

Changed

  • All question states are saved all of the time, rather than just complete questions. All states would normally only be stored by the completion of the course.
  • Questions with _isResetOnRevisit = truthy are saved as attempt states can be more useful here. The new serialiser is much more efficient and stable and is able to capture this new information and store all of the current and new data in a smaller suspend data footprint.

Added

  • Save and restores _attemptStates attributes across sessions
  • Added _spoor._tracking.__shouldStoreAttempts = false to config.json to control when attempt states are saved and restored. Attempt states are not saved and restored by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant