Project

General

Profile

Bug #8079

Random quiz with questions categories

Added by Yannick Warnier almost 4 years ago. Updated almost 4 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Exercises
Target version:
Start date:
12/02/2016
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

In 1.9.x, when selecting a number of random questions with categories, this random number would apply to the number of questions in one category. If the quiz contains questions from several categories, then each of these categories should show that random number of questions.

In 1.10.x (from today), when I have 31 questions, a little bit more than 5 in each of 5 categories, and I pick a number of random questions to be extracted, I only get 5 questions in total!!! I should get (5 categories)x(5 questions randomly selected) = 25 questions!

  • create 5 quiz questions categories
  • create a basic test
  • create 30-or-so questions and assign them equally to each category
  • edit the test configuration and select "Random questions" = 5
  • select that you want to show questions categories and that you want to use categories randomly picked
  • save
  • in the list of exercises, you should be able to see that your test is marked as "25 questions, from 5 categories"
  • click the "Preview test" button
  • move to the end of the 5-questions test. You'll see that you only remain at 5 questions, not 25 as expected
  • that's it

Associated revisions

Revision 488bf0ae (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Fix style of button to convert multiple/unique answer - refs #8079

Revision c165f721 (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Fix get questions by category - refs #8079

Revision 70b667c9 (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Use DQL to get questions by category - refs #8079

Revision 498f4e3a (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Fix style of button to convert multiple/unique answer - refs #8079

Revision 0cc4749a (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Fix get questions by category - refs #8079

Revision 4558b813 (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Use DQL to get questions by category - refs #8079

History

#1

Updated by Yannick Warnier almost 4 years ago

  • Assignee changed from Julio Montoya to Angel Quiroz
#2

Updated by Angel Quiroz almost 4 years ago

  • Status changed from Assigned to Needs testing
  • Assignee changed from Angel Quiroz to Yannick Warnier
  • % Done changed from 0 to 90

I committed 498f4e3 0cc4749 4558b81

But the second is the one that really fix the bug

It needs clean all results for the exercise to display the corrected list of exercises, due to the field data_tracking in track_e_exercises

#3

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Needs testing to Bug resolved
  • Assignee changed from Yannick Warnier to Angel Quiroz
  • % Done changed from 90 to 100

Checked and approved. Thanks.

Also available in: Atom PDF