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

Add lesson_restarted and lesson_resumed events to lesson module

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Automated tests:
      1. Run unit tests for mod lesson

      Manual tests:

      1. Run all unit and behat tests for mod_lesson
      2. As a teacher Create a lesson with 3 content pages.
      3. As a student view the first 2 content pages of the lesson.
      4. As a student navigate away from the lesson
      5. As a student return to the lesson and when prompted to resume choose "YES"
      6. As a teacher verify that a "lesson resumed" event was triggered and is recorded in the logs.
      7. As a student navigate away from the lesson
      8. As a student return to the lesson and when prompted to resume choose "NO"
      9. As a teacher verify that a "lesson restarted" event was triggered and is recorded in the logs.

      Show
      Automated tests: 1. Run unit tests for mod lesson Manual tests: 1. Run all unit and behat tests for mod_lesson 2. As a teacher Create a lesson with 3 content pages. 3. As a student view the first 2 content pages of the lesson. 4. As a student navigate away from the lesson 5. As a student return to the lesson and when prompted to resume choose "YES" 6. As a teacher verify that a "lesson resumed" event was triggered and is recorded in the logs. 7. As a student navigate away from the lesson 8. As a student return to the lesson and when prompted to resume choose "NO" 9. As a teacher verify that a "lesson restarted" event was triggered and is recorded in the logs.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-49430_m29v4

      Description

      Now that MDL-34006 has been fixed, a teacher should be able to determine when a student chooses to continue or abandon (restart) a lesson attempt. This issue proposes to implement 2 new events:

      lesson_restarted - to be triggered when a student chooses to abandon their previous incomplete attempt and start over (choosing no at the continue screen)
      lesson_resumed - to be triggered when a student chooses to resume their previous incomplete attempt (choosing yes at the continue screen)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15