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

Create events for plan workflow

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
      None
    • Testing Instructions:
      Hide
      • Create a plan with draft status
      • Go to the plan detail page
      • Click on Request review link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan review requested.
      • Go back to the plan detail page and click on Cancel review request link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan review request cancelled.
      • Go back to the plan detail page and click on Request review link and click on Start review link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan review started.
      • Go back to the plan detail page and click on Finish review link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan review stopped.
      • Go back to the plan detail page and click on Make active link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan approved.
      • Go back to the plan detail page and click on Complete this learning plan link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan completed.
      • Go back to the plan detail page and click on Reopen this learning plan link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan reopened.
      • Go back to the plan detail page and click on Send back to draft link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan unapproved.
      • Create a plan based on template
      • Go to the plan detail page
      • Click on Unlink from template link
      • Go to Home ► Site administration ► Reports ► Logs and click Get these logs, you should see Plan unlinked.

      Run the unittest:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      Create a plan with draft status Go to the plan detail page Click on Request review link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan review requested. Go back to the plan detail page and click on Cancel review request link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan review request cancelled. Go back to the plan detail page and click on Request review link and click on Start review link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan review started. Go back to the plan detail page and click on Finish review link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan review stopped. Go back to the plan detail page and click on Make active link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan approved. Go back to the plan detail page and click on Complete this learning plan link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan completed. Go back to the plan detail page and click on Reopen this learning plan link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan reopened. Go back to the plan detail page and click on Send back to draft link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan unapproved. Create a plan based on template Go to the plan detail page Click on Unlink from template link Go to Home ► Site administration ► Reports ► Logs and click Get these logs , you should see Plan unlinked. Run the unittest: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53182_master
    • Story Points:
      2
    • Sprint:
      CBE Sprint 6

      Description

      All the workflow actions associated with a plan should trigger a specific event. Here is a non exhaustive list:

      • Plan approved
      • Plan reopened
      • Plan review requested
      • Plan review request cancelled
      • Plan review started
      • Plan review stopped
      • ...

      You may find update events in the relevant API methods, the new events should replace those.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                taboubii Issam Taboubi
                Reporter:
                fred Frédéric Massart
                Peer reviewer:
                Jun Pataleta
                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:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: