-
Notifications
You must be signed in to change notification settings - Fork 510
Description
In C1, the c_quiz_answer table holds a "destination" field that allows the teacher to select a destination (in the adaptative mode) for each selected answer.
This brings an issue, in that the same question cannot be used in 2 different adaptative tests (because the answer is global and not for the specific context of one adaptative test).
It also prevents us to define destinations for anything else than questions of type unique answers or delineation.
However, removing the destination
field from c_quiz_answer
and moving it to c_quiz_rel_question
will remove the level of detail that answer.destination
gave us, which was to define a destination per selected answer. This is probably a temporary loss. We can add the feature again later on, but to move fast we have to loose this capability and data for now (upon migration, adaptative tests will have to be re-edited).
h2. To do list
- Create the c_quiz_rel_question.destination field as a text field (it will hold a JSON array like
{ sucess: '/main/exercise/35/q/4', failure: '/main/lp/134'}
. The field can be empty to start with). Create the migration, fixtures and entities for this if necessary. - Remove the
c_quiz_answer.destination
field through a migration (and modify the entity). - Create additional fields at the end of the question edition field, that only appear (like the previous
destination
field for each answer) in the context of an adaptative test. Use the same syntax to save possible destinations (including "repeat" and other particular choices), but only for "Success" or "Failure", "Success" being considered as obtaining the maximum score for that question. - Remove the code related to destination on specific answers (including the forms in adaptative mode).