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

Implement plan status

    XMLWordPrintable

    Details

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

      Create users and roles

      • login with admin
      • create a user-plan-manage with role plan-manage having [planmanage, planview] (capabilities)
      • create a user-manage-draft with role plan-manage-draft having [planmanagedraft, planviewowndraft] (capabilities)
      • create a user-manage-own with role plan-manage-own having [planmanageown, planviewown] (capabilities)
      • create a user-manage-own-draft with role manage-own-draft having [planmanageowndraft, planviewowndraft] (capabilities)

      Test with user-manage-own-draft

      • login with user-manage-own-draft and go to profile->Learning plans
      • Click on ""Add new learning plan" button and check that the status select contains only "draft" option.
      • Save change and in go back to the learning plan list et check that you can edit your learning plan.
      • Copy the learning plan id

      Test with user-manage-own

      • login with user-manage-own and try to go on the url : .../admin/tool/lp/editplan.php?id=[the-learning-plan-id-copyed]
      • You should get an error permission
      • Go to the learning plan list and Click on ""Add new learning plan" button and check that the status select contains only "active/complete" options.
      • Create the learning plan with active status and try to edit it with complete status, the learning plan should be edited successfully.

      Test with user-manage-draft

      • login with user-manage-draft and try to go on the url : .../admin/tool/lp/plans.php?id=[user-manage-own-draft-id]
      • It should list the learning plan [with status draft] created by user-manage-own-draft, edit the learing plan and save the change.
      • the learning plan should be edited successfully.
      • go to the url .../admin/tool/lp/editplan.php?id=[the-learning-plan-id-of-user-manage-own]
      • You should get an error permission

      Test with user-plan-manage

      • login with user-plan-manage and go to profile->Learning plans
      • Click on ""Add new learning plan" button and check that the status select contains only "active/complete" options.
      • Save change and in go back to the learning plan list et check that you can edit your learning plan.
      • Go on the url : .../admin/tool/lp/plans.php?id=[user-manage-own-id]
      • It should list the learning plan [with status active/complete] created by user-manage-own check that you can edit those learning plan
      • go to the url .../admin/tool/lp/editplan.php?id=[the-learning-plan-id-of-user-manage-draft]
      • You should get an error permission
      Show
      Create users and roles login with admin create a user-plan-manage with role plan-manage having [planmanage, planview] (capabilities) create a user-manage-draft with role plan-manage-draft having [planmanagedraft, planviewowndraft] (capabilities) create a user-manage-own with role plan-manage-own having [planmanageown, planviewown] (capabilities) create a user-manage-own-draft with role manage-own-draft having [planmanageowndraft, planviewowndraft] (capabilities) Test with user-manage-own-draft login with user-manage-own-draft and go to profile->Learning plans Click on ""Add new learning plan" button and check that the status select contains only "draft" option. Save change and in go back to the learning plan list et check that you can edit your learning plan. Copy the learning plan id Test with user-manage-own login with user-manage-own and try to go on the url : .../admin/tool/lp/editplan.php?id= [the-learning-plan-id-copyed] You should get an error permission Go to the learning plan list and Click on ""Add new learning plan" button and check that the status select contains only "active/complete" options. Create the learning plan with active status and try to edit it with complete status, the learning plan should be edited successfully. Test with user-manage-draft login with user-manage-draft and try to go on the url : .../admin/tool/lp/plans.php?id= [user-manage-own-draft-id] It should list the learning plan [with status draft] created by user-manage-own-draft, edit the learing plan and save the change. the learning plan should be edited successfully. go to the url .../admin/tool/lp/editplan.php?id= [the-learning-plan-id-of-user-manage-own] You should get an error permission Test with user-plan-manage login with user-plan-manage and go to profile->Learning plans Click on ""Add new learning plan" button and check that the status select contains only "active/complete" options. Save change and in go back to the learning plan list et check that you can edit your learning plan. Go on the url : .../admin/tool/lp/plans.php?id= [user-manage-own-id] It should list the learning plan [with status active/complete] created by user-manage-own check that you can edit those learning plan go to the url .../admin/tool/lp/editplan.php?id= [the-learning-plan-id-of-user-manage-draft] You should get an error permission
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51646_master
    • Story Points:
      3
    • Sprint:
      CBE Sprint 1

      Description

      When a user is lacking permissions, their plan will automatically be created with the status "Draft". When a user has permissions, they can choose whether the plan is "Draft" or "Active".

      A user that only has the permission to create their own plan cannot change the plan (including linked competencies) once it was set "Active" or "Completed", more will come with MDL-51035. Users with the permission to manage a plan can.

      The page listing the plans should contain tabs to display the list of Draft/Active/Completed plans. We can look at MDL-50976, if it does not seem to be closed to finish we can ignore that fact and raise a follow-up issue to implement the tabs.

      Note, in MDL-51805 we will freeze the result of the competencies of a user when the plan becomes complete.

      Also note that there will be more status added in the future when the plans will be reviewed, etc...

      The actions to be taken when the plan is marked as completed will be set in MDL-51805.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                taboubii Issam Taboubi
                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, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: