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

Improve deletion of course preconfigured LTI tools

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-78576-master
    • Hide

      Testing course tool deletion

      1. Go to a course
      2. In the course navigation, go to "More > External LTI tools"
      3. Create a tool, using the name "Tool 1" and URL "http://example.com"
      4. Create another tool using the name "Tool 2" and the URL "https://moodle.org"
      5. Create another tool using the name "Tool 3" and the URL "https://moodle.net"
      6. Go to the course home
      7. Click to add an activity or resource, selecting "External tool"
      8. Name the tool instance "Instance test embed"
      9. Set "Launch container" to "Embed"
      10. Select "Tool 1" from the preconfigured tool select
      11. Save the activity instance
      12. Click to add an activity or resource, selecting "External tool"
      13. Name the tool instance "Instance test new window"
      14. Set "Launch container" to "New window"
      15. Select "Tool 2" from the preconfigured tool select
      16. Save the activity instance
      17. Launch both the instances and confirm that one opens embedded in the current window and the other opens in a new tab
      18. In the course navigation, go to "More > External LTI tools"
      19. You should see the listing showing "Tool 1" having 1 usage, "Tool 2" having 1 usage and "Tool 3" having 0 usages.
      20. Try to delete Tool 3
      21. Verify you see the message "This will delete Tool 3 from the available LTI tools in your course."
      22. Press delete and Verify the tool is deleted.
      23. Try to delete Tool 1
      24. Verify you see the message "Tool 1 is currently being used in at least one activity in your course. If you delete this tool, the activities that use it will no longer work.
        Are you sure you want to delete Tool 1?"
      25. Press delete and Verify the tool is deleted.
      26. Repeat the process and delete Tool 2.

      Testing launch of an instance having a deleted tool

      1. Go to the course home
      2. Click to launch the activity "Instance test embed"
      3. Verify you see the error "The preconfigured tool associated with this activity could not be found. Please contact the course administrator."
      4. Go to the course home
      5. Click to launch the activity "Instance test new window"
      6. Verify you see the error "The preconfigured tool associated with this activity could not be found. Please contact the course administrator."
      Show
      Testing course tool deletion Go to a course In the course navigation, go to "More > External LTI tools" Create a tool, using the name "Tool 1" and URL "http://example.com" Create another tool using the name "Tool 2" and the URL "https://moodle.org" Create another tool using the name "Tool 3" and the URL "https://moodle.net" Go to the course home Click to add an activity or resource, selecting "External tool" Name the tool instance "Instance test embed" Set "Launch container" to "Embed" Select "Tool 1" from the preconfigured tool select Save the activity instance Click to add an activity or resource, selecting "External tool" Name the tool instance "Instance test new window" Set "Launch container" to "New window" Select "Tool 2" from the preconfigured tool select Save the activity instance Launch both the instances and confirm that one opens embedded in the current window and the other opens in a new tab In the course navigation, go to "More > External LTI tools" You should see the listing showing "Tool 1" having 1 usage, "Tool 2" having 1 usage and "Tool 3" having 0 usages. Try to delete Tool 3 Verify you see the message "This will delete Tool 3 from the available LTI tools in your course." Press delete and Verify the tool is deleted. Try to delete Tool 1 Verify you see the message "Tool 1 is currently being used in at least one activity in your course. If you delete this tool, the activities that use it will no longer work. Are you sure you want to delete Tool 1?" Press delete and Verify the tool is deleted. Repeat the process and delete Tool 2. Testing launch of an instance having a deleted tool Go to the course home Click to launch the activity "Instance test embed" Verify you see the error "The preconfigured tool associated with this activity could not be found. Please contact the course administrator." Go to the course home Click to launch the activity "Instance test new window" Verify you see the error "The preconfigured tool associated with this activity could not be found. Please contact the course administrator."
    • 1
    • Team Alpha - Planning I3-2023

      Summary:

      At the moment, deleting a course preconfigured LTI tool as a teacher is not a very intuitive process. Teachers are only able to achieve this during the process of creating or editing an External tool activity. The delete option is present next to the selected option for the 'Preconfigured tool' form setting which is not easily discoverable.

      The aim of this issues is to improve this process by placing the delete option within the centralized page for previewing and managing course preconfigured LTI tools (MDL-78575).

      Scope:

      1. Revise wording for the warning in the delete confirmation dialog if the course preconfigured tool has usages in the course. 
      2. Implement better error handling when existing activities are using a deleted preconfigured LTI tool.
        • show a proper error message when the user accesses the activity.  
      3. Automated testing.

            jaked Jake Dallimore
            Geshoski Mihail Geshoski
            Mathew May Mathew May
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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