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

Completion data for LTI not updated before rendering navigation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Activity completion
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisite
      1. Enable completion and availability under 'Advanced features'.
      2. Create a course with completion enabled.
      Test 1
      1. Create an LTI activity with 'Launch container' set to 'Default', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      2. Create an assignment that is restricted until the LTI activity is completed.
      3. Enrol a student into this course.
      4. Log in as the student.
      5. Click on the LTI activity.
      6. Confirm there is a link to the assignment.
      7. Log in as the admin and visit the course.
      8. Visit 'Course administration' > 'Reports' > 'Logs'.
      9. Confirm there is only one 'Course module viewed' event for that module.

      NOTE: There will be two completion updated events, ignore that (see MDL-45581).

      Test 2
      1. Create an LTI activity with 'Launch container' set to 'Embeded', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      2. Create an assignment that is restricted until the LTI activity is completed.
      3. Enrol a student into this course.
      4. Log in as the student.
      5. Click on the LTI activity.
      6. Confirm there is a link to the assignment.
      7. Log in as the admin and visit the course.
      8. Visit 'Course administration' > 'Reports' > 'Logs'.
      9. Confirm there is only one 'Course module viewed' event for that module.
      Test 3
      1. Create an LTI activity with 'Launch container' set to 'Embeded, without blocks', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      2. Create an assignment that is restricted until the LTI activity is completed.
      3. Enrol a student into this course.
      4. Log in as the student.
      5. Click on the LTI activity.
      6. Confirm there is a link to the assignment.
      7. Log in as the admin and visit the course.
      8. Visit 'Course administration' > 'Reports' > 'Logs'.
      9. Confirm there is only one 'Course module viewed' event for that module.
      Test 4
      1. Create an assignment.
      2. Create an LTI activity with 'Launch container' set to 'Existing window', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      3. Create an assignment that is restricted until the LTI activity is completed.
      4. Enrol a student into this course.
      5. Log in as the student.
      6. Click on the first assignment.
      7. Confirm there is a link to the LTI activity.
      8. Click on the link and ensure the LTI activity displays in an embed frame.
      9. Click on the LTI activity.
      10. Confirm there is a link to the assignment.
      11. Log in as the admin and visit the course.
      12. Visit 'Course administration' > 'Reports' > 'Logs'.
      13. Confirm there is only one 'Course module viewed' event for that module.
      Test 5
      1. Create an assignment.
      2. Create an LTI activity with 'Launch container' set to 'New window', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      3. Create another assignment that is restricted until the LTI activity is completed.
      4. Enrol a student into this course.
      5. Log in as the student.
      6. Click on the first assignment.
      7. Confirm there is a link to the LTI activity.
      8. Click on the link and ensure the LTI activity does not open a new window but provides a link that will.
      9. Confirm there is a link to other assignment.
      10. Log in as the admin and visit the course.
      11. Visit 'Course administration' > 'Reports' > 'Logs'.
      12. Confirm there is only one 'Course module viewed' event for that module.
      Show
      Prerequisite Enable completion and availability under 'Advanced features'. Create a course with completion enabled. Test 1 Create an LTI activity with 'Launch container' set to 'Default', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want). Create an assignment that is restricted until the LTI activity is completed. Enrol a student into this course. Log in as the student. Click on the LTI activity. Confirm there is a link to the assignment. Log in as the admin and visit the course. Visit 'Course administration' > 'Reports' > 'Logs'. Confirm there is only one 'Course module viewed' event for that module. NOTE: There will be two completion updated events, ignore that (see MDL-45581 ). Test 2 Create an LTI activity with 'Launch container' set to 'Embeded', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want). Create an assignment that is restricted until the LTI activity is completed. Enrol a student into this course. Log in as the student. Click on the LTI activity. Confirm there is a link to the assignment. Log in as the admin and visit the course. Visit 'Course administration' > 'Reports' > 'Logs'. Confirm there is only one 'Course module viewed' event for that module. Test 3 Create an LTI activity with 'Launch container' set to 'Embeded, without blocks', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want). Create an assignment that is restricted until the LTI activity is completed. Enrol a student into this course. Log in as the student. Click on the LTI activity. Confirm there is a link to the assignment. Log in as the admin and visit the course. Visit 'Course administration' > 'Reports' > 'Logs'. Confirm there is only one 'Course module viewed' event for that module. Test 4 Create an assignment. Create an LTI activity with 'Launch container' set to 'Existing window', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want). Create an assignment that is restricted until the LTI activity is completed. Enrol a student into this course. Log in as the student. Click on the first assignment. Confirm there is a link to the LTI activity. Click on the link and ensure the LTI activity displays in an embed frame. Click on the LTI activity. Confirm there is a link to the assignment. Log in as the admin and visit the course. Visit 'Course administration' > 'Reports' > 'Logs'. Confirm there is only one 'Course module viewed' event for that module. Test 5 Create an assignment. Create an LTI activity with 'Launch container' set to 'New window', and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want). Create another assignment that is restricted until the LTI activity is completed. Enrol a student into this course. Log in as the student. Click on the first assignment. Confirm there is a link to the LTI activity. Click on the link and ensure the LTI activity does not open a new window but provides a link that will. Confirm there is a link to other assignment. Log in as the admin and visit the course. Visit 'Course administration' > 'Reports' > 'Logs'. Confirm there is only one 'Course module viewed' event for that module.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59668_master

      Description

      1. Enable completion and availability under 'Advanced features'.
      2. Create a course with completion enabled.
      3. Create an LTI activity and set it to complete when it is viewed (use https://api.feedbackfruits.com/v1/lti/launch/video if you want).
      4. Create an assignment that is restricted until the LTI activity is completed.
      5. Enrol a student into this course.
      6. Log in as the student.
      7. Click on the LTI activity.
      8. Notice that there is no link to the assignment even though LTI is completed.
      9. Refresh the page.
      10. Notice there is now a link to the assignment.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17