Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.5
-
None
-
None
Description
The ability to select questions at random from the question bank is an important feature. However, the way it is currently implemented, with instances of a fake question type sort-of present in the question bank but hidden, causes no end of problems, particularly with backup and restore. There are better ways to store what is going on.
For example, in the quiz, the quiz_slots DB table has a questionid column that directly links to the question for non-random questions, and it has columns categoryid + tag + include subcategories, for randomly selected questions. That is the good way to handle this, and does not require qtype_random at all.
So, qtype_random should be removed (except, possibly, for a stub to support restore of old backups). And all the code simplification that follows from that should be made.
Attachments
Issue Links
- has been marked as being related by
-
MDL-61380 Allow quizzes to have random questions by tag
-
- Closed
-
- is duplicated by
-
MDL-45927 Replace qtype_random with quiz-specific code, and helper methods in the question bank
-
- Closed
-
- will help resolve
-
MDL-61091 As a teacher, I can add a 'random question' to my quiz where the question is taken from a question category (optionally including sub categories) with optional filtering by tags.
-
- Closed
-