Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31957

Reset does not delete activity completion data

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Create 2 courses, course A and course B, and enable activity completion in both.
      2. In both A and B, add a couple of activities (e.g. labels) with manual completion turned on.
      3. In both A and B, turn editing off and tick the boxes.
      4. In A, go to reset course. Choose the 'Completion data' option and reset. Go back to main page.
      * Verify that both boxes in A are now not ticked. (This checks the session cache has been cleared.)
      5. Log out and log in again.
      * Verify that both boxes in A are still not ticked. (This checks the database entries have been cleared.)
      6. Look at course B.
      * Verify that both boxes are still ticked. (This checks I didn't accidentally wipe the entire table or something, and it only affects the course you're on.)

      Note: There are other things to test but clearing completion data is actually pretty simple

      Show
      1. Create 2 courses, course A and course B, and enable activity completion in both. 2. In both A and B, add a couple of activities (e.g. labels) with manual completion turned on. 3. In both A and B, turn editing off and tick the boxes. 4. In A, go to reset course. Choose the 'Completion data' option and reset. Go back to main page. * Verify that both boxes in A are now not ticked. (This checks the session cache has been cleared.) 5. Log out and log in again. * Verify that both boxes in A are still not ticked. (This checks the database entries have been cleared.) 6. Look at course B. * Verify that both boxes are still ticked. (This checks I didn't accidentally wipe the entire table or something, and it only affects the course you're on.) Note: There are other things to test but clearing completion data is actually pretty simple
    • Workaround:
      Hide

      As a workaround, it is possible to access every activity in the course and Unlock activity completion.

      Show
      As a workaround, it is possible to access every activity in the course and Unlock activity completion.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-31957-master

      Description

      When doing a course reset where activity completion and course completion are enabled, reset erase attempts and completion data for activities except for SCORM. For SCORM, only attempts are deleted while activity completion data is kept.

      To reproduce in Moodle 2.2.1 build 20120213:

      Set up

      • in a site with completion and conditional subsystems enabled, create a course and enable completion tracking
      • add two SCORM (say, SC1 and SC2) activity and one quiz activity (say QZ1) to the course
      • for both SC1 and SC2 scorms, set completion criteria to "Student must view this activity to complete it"
      • for SC2 scorm, add conditional availability "SC1 scorm must be marked complete"
      • for QZ1 quiz, set completion criteria to "Student must receive a grade to complete this activity" and set conditional availability "SC2 scorm must be marked complete"
      • now set course completion criteria with Aggregation: ALL and select both SC1 and SC2 scorm as well as QZ1 quiz.
      • at this point you should end up with an activities sequence where a student 1) attempt SC1 and complete it, then 2) can attempt SC2 and complete it, then 3) can attempt the quiz and complete it. Once completed all three activities, student also completes the course.

      Test

      • access the course as student, attempt SC1, SC2 and QZ1
      • access again the course as admin, or with manager/teacher role
      • make sure course completion report shows student's completion for SC1, SC2, QZ1 and course.
      • click on "Reset" link from Course administration (Settings block)
      • for reset, select Course completion, Quiz and SCORM attempts
      • reset the course
      • Results: Quiz attempts deleted, SCORM attempts deleted, Course completion deleted, Quiz activity completion deleted, SCORM activity completion NOT deleted.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12