Moodle

ungraded is not correct

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.6
  • Fix Version/s: None
  • Component/s: Quiz
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_16_STABLE

Description

Tim-I've been having a problem since the essay beta version. I had hoped it would go away with the upgrade to 1.6, but it hasn't. The problem is that even after I grade essay questions, some are still being included in the totals of ungraded questions. In order to be able to give you some useful information from my database to troubleshoot this, I need to understand what the following line from mod/quiz/grading/report/grading/report.php does:

// determine the number of ungraded attempts

$ungraded = 0;

foreach ($attempts as $attempt) {

if (!$this->is_graded($question, $attempt)) { $ungraded++; }

}

What I need to know is what fields in the database is it looking at to determine whether a question has been graded or not. If I know that, I can see what information is in those fields to troubleshoot this.

In the past, I have manually fiddled with the database by trial and error (unfortunately, something I have to do a lot with the quiz module) to get it working, but it hasn't been systematic. So if you can tell me how this number is calculated I can make a more systematic attempt at finding out the source of the problem.

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

From non non (nbhansen at midway.uchicago.edu) Friday, 21 July 2006, 08:50 PM:

Tim-I looked up one question attempt to see what is wrong. What seems to have happened in this case is that when the student submitted the quiz, the event remained at 2. I was able to grade this question while it was in the state 2, but it never switched from event 2 to 8 like it was supposed to, and thereby never seems to have to changed to a 6 or 9 (I'm not quite sure which one is supposed to happen).

I don't know if this accounts for other instances of this problem (because I have more than one of them), but it does account for this particular one at least it seems. But the question remains, why? Why are some questions randomly remaining in the 2 state?

Show
Martin Dougiamas added a comment - From non non (nbhansen at midway.uchicago.edu) Friday, 21 July 2006, 08:50 PM: Tim-I looked up one question attempt to see what is wrong. What seems to have happened in this case is that when the student submitted the quiz, the event remained at 2. I was able to grade this question while it was in the state 2, but it never switched from event 2 to 8 like it was supposed to, and thereby never seems to have to changed to a 6 or 9 (I'm not quite sure which one is supposed to happen). I don't know if this accounts for other instances of this problem (because I have more than one of them), but it does account for this particular one at least it seems. But the question remains, why? Why are some questions randomly remaining in the 2 state?
Hide
Tim Hunt added a comment -

I think this was another symptom of MDL-6315 which I fixed recently.

Show
Tim Hunt added a comment - I think this was another symptom of MDL-6315 which I fixed recently.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: