Quiz Creation: Saving quiz, issues in Learn #12010
Labels
APP: Coach
Re: Coach App (lessons, quizzes, groups, reports, etc.)
APP: Learn
Re: Learn App (content, quizzes, lessons, etc.)
DEV: backend
Python, databases, networking, filesystem...
DEV: frontend
P0 - critical
Priority: Release blocker or regression
Milestone
Overview
Previously we updated the Exam viewer to account for the new data structure we're using for quiz sections. However, there seems to be an issue that has come up despite this having worked previously.
Additionally, there is an issue when saving the quiz that results in the user not being properly redirected to the Plan -> Quizzes page.
In Learn, we see the following when we sign in as a learner who is assigned to the quiz:
Seems that we have an issue w/ how the quiz data is being processed, perhaps we missed a place where we need to update handling of the quiz object -- or, perhaps, the issue is in how the data is being saved into the database in the first place.
A few other places in the code may run into similar problems, namely:
Acceptance criteria
On the front-end, we can use conversion functions to convert older data_models to v3 so that then everywhere in Kolibri, when we reference a quiz, it is shaped like a >=v3 model and we don't have to conditionalize our code around the updated data structures.
validateQuiz
is properly validating the quiz.assignments
property to the Quiz (useQuizCreation -> _quiz
) object which is a list including theclassId
(available by way of the$route
)kolibri.plugins.learn.viewsets
to properly handle Exam question_sources v3ContentRenderer
's props being passed, may need to use somekolibri.core.exams.src.assets.utils
helpers for converting the data structure.Exam
model is being referenced, particularly within serializers, views, and viewsets. If it's a straightforward fix, do it, otherwise, note it in your PR so that we can follow-up on those places as well.The text was updated successfully, but these errors were encountered: