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

Lesson : add a time spent custom completion rule

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.3, 2.8.1
    • Fix Version/s: 2.9
    • Component/s: Lesson
    • Testing Instructions:
      Hide

      You need a course with a teacher and 2 students

      1. Create a lesson and, in the Activity completion section:
        1. set "completion tracking" to "Show activity as complete when conditions are met"
        2. check "Require time spent" line, and set time to 2 minutes
        3. add some content pages to the lesson (you don't need to add any question page, but you can. Be warned that if you add some question pages, you must set "Retakes allowed" to "Yes" to be able to do several attempts as a student, see MDL-49429)
      2. Attempt the lesson as a student 1 and spend less than 1 minute in it
        1. Verify that on the end of lesson page a message is displayed "You completed this lesson in xxx, which is less than the required time of 2 mins. You might need to attempt the lesson again.
        2. Verify that the lesson has not been marked as completed
      3. Reattempt the lesson as student 1 and make sure that the total of both attempts is just above 2 minutes
        1. Verify that the message is no more displayed on the end of lesson page
        2. Verify that the lesson is now marked as completed
      4. Attempt the lesson as a studnet 2, and spent more than 2 minutes in it
        1. Verify that it has been marked as completed
      5. Verify that during backup and restore the time spent settings of a lesson are correctly saved and restored
      6. Verify that if you restore an old backup with lessons made prior this feature has been introduced all is fine with no warning or error and lessons don't have this completion rule enabled.
      Show
      You need a course with a teacher and 2 students Create a lesson and, in the Activity completion section: set "completion tracking" to "Show activity as complete when conditions are met" check "Require time spent" line, and set time to 2 minutes add some content pages to the lesson (you don't need to add any question page, but you can. Be warned that if you add some question pages, you must set "Retakes allowed" to "Yes" to be able to do several attempts as a student, see MDL-49429 ) Attempt the lesson as a student 1 and spend less than 1 minute in it Verify that on the end of lesson page a message is displayed "You completed this lesson in xxx, which is less than the required time of 2 mins. You might need to attempt the lesson again. Verify that the lesson has not been marked as completed Reattempt the lesson as student 1 and make sure that the total of both attempts is just above 2 minutes Verify that the message is no more displayed on the end of lesson page Verify that the lesson is now marked as completed Attempt the lesson as a studnet 2, and spent more than 2 minutes in it Verify that it has been marked as completed Verify that during backup and restore the time spent settings of a lesson are correctly saved and restored Verify that if you restore an old backup with lessons made prior this feature has been introduced all is fine with no warning or error and lessons don't have this completion rule enabled.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:

      Description

      Now that lesson has a "end of lesson reached" custom completion rule, the only thing missing so that we can advise people not to use the old "lesson dependency" feature is a time spent completion rule.
      See MDL-26689 and https://moodle.org/mod/forum/discuss.php?d=263766

        Attachments

        1. completion_time_spent_help.png
          completion_time_spent_help.png
          13 kB
        2. completion.png
          completion.png
          19 kB
        3. completion2.png
          completion2.png
          18 kB
        4. completion3.png
          completion3.png
          19 kB
        5. infiniteloop.png
          infiniteloop.png
          26 kB
        6. lessoncompletion.png
          lessoncompletion.png
          39 kB

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

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