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

LTI Adv Restore: all lineitems are restored to the same activity

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL_74310_311
    • MDL_74310_400
    • MDL_74310_master
    • Hide

      In this test, we're going to verify the copied course is passing the line item endpoint needed to send score back to Moodle. This issue, by miswiring the restored data, was preventing the line item to be passed to the tool in copied courses. That URL is used to send grades back to Moodle.

      Pre-requesite

      1. LTI Advantage requires your site to be reachable from the internet. If not, Install ngrok to expose your moodle setup externally. Refer here for additional guidelines
      2. Have a course with an instructor.
      3. Have the Robotest Test app installed
        1. As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools
        2. In the box that says tool url enter: https://robotest.theedtech.dev/register
        3. Click the Add LTI Advantage button
        4. The test tool should open with a trace of the communication with Moodle, all should be green (thumbs up).
        5. Click the close button - the test app UI should disappear and the list of tools refreshing
        6. Verify the Robotest app has been added and is not yet activated
        7. Click the Activate button

      Restored courses pass lineitem data

      1. Create a new course
      2. Add external tool, choose robotest, select content
        1. Choose One of Each, accept
        2. Validate 2 links are added in the course
      3. Re-do step 2
      4. You should have 2 links that starts with Graded (IFrame). For each one:
        1. Launch the link
        2. Verify thumbs Up, in particular in green: Line Item Present
      5. Backup the full course
      6. Restore it in a new course
      7. Verify the links have all been restored
      8. Verify step 4 for the 2 graded links (if you have no members in the restored course, ignore the failure about no members, the item that matters is Line Item Present is passing (green).

       

      Show
      In this test, we're going to verify the copied course is passing the line item endpoint needed to send score back to Moodle. This issue, by miswiring the restored data, was preventing the line item to be passed to the tool in copied courses. That URL is used to send grades back to Moodle. Pre-requesite LTI Advantage requires your site to be reachable from the internet. If not, Install ngrok to expose your moodle setup externally. Refer here for additional guidelines Have a course with an instructor. Have the Robotest Test app installed As site administrator, navigate to Site Admin > Plugins > Activity Modules > External Tool > Manage Tools In the box that says tool url enter: https://robotest.theedtech.dev/register Click the Add LTI Advantage button The test tool should open with a trace of the communication with Moodle, all should be green (thumbs up). Click the close button - the test app UI should disappear and the list of tools refreshing Verify the Robotest app has been added and is not yet activated Click the Activate button Restored courses pass lineitem data Create a new course Add external tool, choose robotest, select content Choose One of Each, accept Validate 2 links are added in the course Re-do step 2 You should have 2 links that starts with Graded (IFrame). For each one : Launch the link Verify thumbs Up, in particular in green: Line Item Present Backup the full course Restore it in a new course Verify the links have all been restored Verify step 4 for the 2 graded links (if you have no members in the restored course, ignore the failure about no members, the item that matters is Line Item Present is passing (green).  

    Description

      When a gradebook contains multiple graded lti links, the restored course links all the restored line items to a single activity. This prevents to pass the correct line item URL on launch, which will prevent some tools to be able to report grades on restored courses.

       

      Attachments

        1. 4.0+ broken launch.png
          4.0+ broken launch.png
          181 kB
        2. Step 4_1.PNG
          Step 4_1.PNG
          55 kB
        3. Step 4_2A.PNG
          Step 4_2A.PNG
          158 kB
        4. Step 4_2B.PNG
          Step 4_2B.PNG
          157 kB
        5. Step 7.PNG
          Step 7.PNG
          53 kB
        6. Step 8A.PNG
          Step 8A.PNG
          168 kB
        7. Step 8B.PNG
          Step 8B.PNG
          169 kB

        Activity

          People

            claudevervoort Claude Vervoort
            claudevervoort Claude Vervoort
            Laurent David Laurent David
            Jake Dallimore Jake Dallimore
            Gladys Basiana Gladys Basiana
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Jul/22

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m