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

Check that invalid staged answers are saved after submitting #768

Closed
christianp opened this issue Nov 16, 2020 · 1 comment
Closed

Check that invalid staged answers are saved after submitting #768

christianp opened this issue Nov 16, 2020 · 1 comment

Comments

@christianp
Copy link
Member

From student reports, I think there's an unexpected behaviour when submitting an invalid answer.

Staged but unsubmitted answers are saved in the cmi.interactions.N.staged_answer key, so they'll be restored when the attempt is resumed. I suspect that if the student submits an invalid answer, the staged answer is cleared, so on resume it looks like they didn't write anything.

I think the right thing to do is to save invalid answers as the submitted answer, so when the attempt is resumed the invalid answer is restored and the part submitted again. This way the answer is not lost, and if the question is changed so that a previously invalid answer becomes valid, it will be marked.

@christianp
Copy link
Member Author

I've just tried entering invalid answers to all the built-in part types, and they restored fine, so something else is causing this problem, if it isn't user error

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

No branches or pull requests

1 participant