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

When deleting a template delete or unlink derived plans

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide

      Template with user learning plan

      • Create a template.
      • In the learning plan templates page click on User plans link.
      • Select users to create user learning plans.
      • Come back to learning plan templates page and select Delete in Edit menu.
      • Should see a popup indicating that user plans use the template and asking what to do with those plans.
      • Check that Confirm button is disabled as long no radio button is selected.
      • Select a radio button and Cancel.
      • Check the template is not deleted.
      • In learning plan templates page select again Delete in Edit menu.
      • In popup window select any radio button and confirm.
      • Check the template is deleted.

      Template without user learning plan

      • Create a template.
      • In learning plan templates page select Delete in Edit menu.
      • Should see the popup asking to confirm the delete.
      • Click on Cancel button.
      • Check the template is not deleted.
      • In learning plan templates page select again Delete in Edit menu.
      • Click on Delete button.
      • Check the template is deleted.

      Run unittest tool_lp_testsuite

      Show
      Template with user learning plan Create a template. In the learning plan templates page click on User plans link. Select users to create user learning plans. Come back to learning plan templates page and select Delete in Edit menu. Should see a popup indicating that user plans use the template and asking what to do with those plans. Check that Confirm button is disabled as long no radio button is selected. Select a radio button and Cancel. Check the template is not deleted. In learning plan templates page select again Delete in Edit menu. In popup window select any radio button and confirm. Check the template is deleted. Template without user learning plan Create a template. In learning plan templates page select Delete in Edit menu. Should see the popup asking to confirm the delete. Click on Cancel button. Check the template is not deleted. In learning plan templates page select again Delete in Edit menu. Click on Delete button. Check the template is deleted. Run unittest tool_lp_testsuite
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-52675_master
    • Story Points:
      0.5
    • Sprint:
      CBE Sprint 4, CBE Sprint 5

      Description

      When a user delete a template, we have to ask:

      1. Whether the derived plans should be deleted
      2. Whether the derived plans should be unlinked

      No need to ask them when there are no derived plans.

      Deleting relations/dependencies should be delayed to other issues.

        Attachments

          Activity

            People

            • Assignee:
              sergeg55 Serge Gauthier
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Frédéric Massart
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: