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

Lessons students attempts are not saved if they timeout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.5, 2.2.6, 2.9, 3.0.5, 3.1.1, 3.2
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Lesson
    • Testing Instructions:
      Hide
      1. Create a lesson with a time limit [Availability - Time limit] (1 minute is good).
      2. Make sure that the lesson does not allow retakes [Grade - Re-takes allowed].
      3. Create at least two pages, one of which is a question.
      4. Log in as a student and just stay on the first page. When the time limit has expired, click on the button to go to the next page.
      5. Try to take the lesson again. The student should not be able to re-take the lesson.
      6. Log in as a teacher or an admin and check the gradebook. The grade is zero.
      7. Go to the lesson report page. There should be an entry for the student. Tick the check box and delete the attempt.
      8. Log in as the student and re-attempt the lesson. Check that the student does have access to the lesson again.
      1. Create a second lesson with a time limit [Availabiltiy - Time limit].
      2. Allow retakes with this lesson.
      3. Create at least two pages, one of which is a question.
      4. Log in as a student and try the following:
        • Stay on the first page and just wait for the timer to run out, then click on a button to progress the lesson.
        • Enter the lesson and then immediately navigate away (click the link back to the course). Don't return until the time limit has expired.
        • Enter the lesson and go to the next page, then leave before completing the lesson. Return when the timer has expired.
        • Enter the lesson and complete the lesson fully.
        • Log in as a teacher and go to the lesson report page. Check that there are multiple entries for the student.
      Show
      Create a lesson with a time limit [Availability - Time limit] (1 minute is good). Make sure that the lesson does not allow retakes [Grade - Re-takes allowed] . Create at least two pages, one of which is a question. Log in as a student and just stay on the first page. When the time limit has expired, click on the button to go to the next page. Try to take the lesson again. The student should not be able to re-take the lesson. Log in as a teacher or an admin and check the gradebook. The grade is zero. Go to the lesson report page. There should be an entry for the student. Tick the check box and delete the attempt. Log in as the student and re-attempt the lesson. Check that the student does have access to the lesson again. Create a second lesson with a time limit [Availabiltiy - Time limit] . Allow retakes with this lesson. Create at least two pages, one of which is a question. Log in as a student and try the following: Stay on the first page and just wait for the timer to run out, then click on a button to progress the lesson. Enter the lesson and then immediately navigate away (click the link back to the course). Don't return until the time limit has expired. Enter the lesson and go to the next page, then leave before completing the lesson. Return when the timer has expired. Enter the lesson and complete the lesson fully. Log in as a teacher and go to the lesson report page. Check that there are multiple entries for the student.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull 3.1 Branch:
      wip-MDL-37250-31
    • Pull Master Branch:
      wip-MDL-37250-master
    • Sprint:
      3.2 Sprint 2

      Description

      Some students attemps not saved in lesson activity. It's seems random issue.
      When a student complete attemps (in lesson activity log have a "Lesson Start" register and "Lesson End" register), result was not save at Lesson Result. And when we consult them in BBDD, register not exist in mdl_lesson_* tables for User/lesson relationship.

      The Moodle environment:

      • Moodle 2.2.5 and 2.2.6.
      • Linux
      • Apache
      • Postgres 9.1

      Reproduction steps:

      1. Create a lesson with a time limit (1 minute is good).
      2. Create at least two pages, one of which is a question.
      3. Log in as a student and just stay on the first page. When the time limit has expired, click on the button to go to the next page.
      4. Log in as a teacher or an admin and check the gradebook. The grade is zero.
      5. Entering the lesson gives no ability to reset the lesson for the student.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  15 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

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