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

Add lesson_restarted and lesson_resumed events to lesson module

XMLWordPrintable

    • MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-49430_m29v4
    • 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.

      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)

            sbourget Stephen Bourget
            sbourget Stephen Bourget
            Frédéric Massart Frédéric Massart
            David Monllaó David Monllaó
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.