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

Add ability to unlink a plan from its template

    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

      For these tests you need a framework and 3 templates.
      You need also to create user plans from the templates, for a user without plan manager capabilities.

      User defined has plan manager.

      • Login as user with plan manager capabilities.
      • Go to Learning plan templates: Site administration > Learning plans.
      • Go to user plans created: click on the number under column User plans.
      • Go to user profile: click on user' name.
      • Click on Learning plans to see the list of learning plans associated to that user.
      • Select a plan linked to a template ('Template based' set to Yes).
      • Click on Edit for that plan. In option list 'Unlink this template' appears.
      • Click on the option. A confirmation message is played.
      • Confirm that you want to unlink the plan from the template.
      • Check the link between the plan and the template is removed ('Template based' set to No).
      • Click again on Edit for that plan. Option 'Unlink this template' is no longer displayed.
      • Select an other plan linked to a template ('Template based' set to Yes).
      • Click on the plan's name.
      • Check you see information about the linked template and 'Unlink this learning plan' beside it.
      • Click on 'Unlink this learning plan' and confirm you want to unlink.
      • Check the link between the plan and the template is removed: template information is removed.
      • Comeback to the list of learning plans associated to the user.
      • Create a plan for the user. The new plan is not linked to a template ('Template based' set to No).
      • Click on Edit for that plan. Option 'Unlink this template' doesn't appear.

      User not defined has plan manager.

      • Login as user without plan manager capabilities.
      • Go to user profile.
      • Click on Learning plans. You see the list of learning plans associated to the user.
      • Select a plan linked to a template ('Template based' set to Yes).
      • Click on the plan's name.
      • Check you see information about the linked template.
      • Check you don't see the text 'Unlink this learning plan' beside.

      Run unit tests

      Show
      For these tests you need a framework and 3 templates. You need also to create user plans from the templates, for a user without plan manager capabilities. User defined has plan manager. Login as user with plan manager capabilities. Go to Learning plan templates: Site administration > Learning plans. Go to user plans created: click on the number under column User plans. Go to user profile: click on user' name. Click on Learning plans to see the list of learning plans associated to that user. Select a plan linked to a template ('Template based' set to Yes). Click on Edit for that plan. In option list 'Unlink this template' appears. Click on the option. A confirmation message is played. Confirm that you want to unlink the plan from the template. Check the link between the plan and the template is removed ('Template based' set to No). Click again on Edit for that plan. Option 'Unlink this template' is no longer displayed. Select an other plan linked to a template ('Template based' set to Yes). Click on the plan's name. Check you see information about the linked template and 'Unlink this learning plan' beside it. Click on 'Unlink this learning plan' and confirm you want to unlink. Check the link between the plan and the template is removed: template information is removed. Comeback to the list of learning plans associated to the user. Create a plan for the user. The new plan is not linked to a template ('Template based' set to No). Click on Edit for that plan. Option 'Unlink this template' doesn't appear. User not defined has plan manager. Login as user without plan manager capabilities. Go to user profile. Click on Learning plans. You see the list of learning plans associated to the user. Select a plan linked to a template ('Template based' set to Yes). Click on the plan's name. Check you see information about the linked template. Check you don't see the text 'Unlink this learning plan' beside. Run unit tests
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
       MDL-52432_master
    • Story Points:
      2
    • Sprint:
      CBE Sprint 3

      Description

      On the page that shows the details of a plan we need to add an option to unlink the plan from its template. This should show a warning explaining that this not a reversible action.

        Attachments

          Issue Links

            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: