Open ToeBee opened 7 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I just reproduced this bug again. Nothing has changed.
Well, this issue still exists but Instructure has put off fixing it for long enough that they have closed our support case saying it "behaves as expected" and to switch to using the new quizzes feature... which isn't available via the REST API. So there you go.
Summary:
Changing a question from multiple choice to essay should delete all the answers associated with the question but this does not happen. Initially the answers are left alone. However if you then delete one of the answers, the API starts spitting back outright invalid data for the quiz answers.
The answers returned after this is triggered have no ID. They are also represented in the JSON as a string instead of a number which breaks our attempt to parse it using the Gson library.
Steps to reproduce:
Here is a screencast of me reproducing this problem:
Sample invalid data:
Expected behavior:
Changing the question from multiple choice to essay should immediately eliminate all of the associated answers. Also, the API should never return answer IDs as a string (even if blank) as this will break parsing in strictly typed languages.