Add notice for pre-0.17.x quizzes which are not started (gracefully handle edge case) #12954
Labels
APP: Coach
Re: Coach App (lessons, quizzes, groups, reports, etc.)
TODO: needs decisions
Design or specifications are necessary
Milestone
Overview
In 0.17 we changed the structure of Exams' question_sources field. Users may edit quizzes directly thanks to the DraftExam (editable) and Exam (non-editable) models. A user creates a new quiz in >=0.17.x and they create a DraftExam - then, when the quiz is started, it is converted to an Exam.
However, the DraftExam model did not exist prior to 0.17.x so there could be a case where a user created a quiz, not started it and then upgraded their Kolibri.
In this case, we can tell the user something like:
@radinamatic and/or @carinediaz and/or @jtamiace should be consulted for the specifics for the message.
Note that this is a rather unlikely edge case
See the
CreateExamPage
component where theCreateQuizSection
component is displayed. This is using thedraft
property which indicates that you're working with a DraftExam.In this particular case, you will have
draft=false
ANDdata_model_version < 3
ANDactive=false
-- this indicates that the quiz is not a draft, nor has it been started and it comes from beforeDraftExam
existed.The text was updated successfully, but these errors were encountered: