Details
Description
Encountered a problem for grading Essay Questions.
To reproduce the problem:
0. Edit the essay question type so that the method is_usable_by_random returns true.
1. Add a random question to a quiz and select category X for the random question.
2. In category X only have Essay Question(s)
3. Take the quiz as a student.
4. Go to the Manual Grading Tab as a Teacher and you will find that there are no essay questions to grade.
This is because of how the code checks for essay questions in the quiz. Go to line 256 in grading.php to see how it does this.
The random question type causes a lot of problems for grading Essay Questions because if the random question is pulling from Essays and non-essays then not every student will answer the question.
So, the method for how the grading code looks for essay questions in a quiz and the interface for grading essay questions need to be altered. I'm not entirely sure how random questions work so I am stuck on this problem at the present time.
Another solution is to add ESSAY to the excludedtypes array in random question type.
Attachments
Issue Links
| This issue blocks: | ||||
| MDL-8648 | Allow essay questions to be selected by random questions |
|
|
|
| This issue will help resolve: | ||||
| MDL-8648 | Allow essay questions to be selected by random questions |
|
|
|
| This issue is duplicated by: | ||||
| MDL-8341 | comment override grade for random questions |
|
|
|
| MDL-7698 | overriding grade of randomly added questions in quiz doesn't work |
|
|
|
From Gustav Delius (gwd2 at york.ac.uk) Thursday, 1 September 2005, 02:54 PM:
I would support the solution of excluding essay questions from the random questions by adding them to the excluded type array.
However the problem will probably also go away once the manual grading code gets extended to cover all questions. Then the grading code will no longer need to be able to identify all essay questions, it will simply list all questions in the quiz.
From Gustav Delius (gwd2 at york.ac.uk) Monday, 6 February 2006, 06:56 AM:
For now I have simply added essay questions to the list of excluded questions for random questions. This is probably the most sensible thing to do anyway given that essay questions are quite a bit different from the other questions.
From Anthony Borrow (aborrow at jesuitcp.org) Sunday, 5 March 2006, 04:57 AM:
While the issue of not being able to grade random essay questions may be fixed by excluding essay questions from the available random list, I would like to make sure that it does not disappear from the radar screen. If it is ok, I would like to reopen this and change it to a feature request. I think the ability to choose from a category of random essay questions is helpful and would be a great feature.