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

The task that completes the plans shouldn't complete draft plans

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      • create plan with due date enabled and set to now and set status to draft
      • Run the task

        php admin/tool/task/cli/schedule_task.php --execute=\\tool_lp\\task\\complete_plans_task
        

      • Check that the plan has draft status
      • Create plan with due date enabled and set to now and set status to active
      • Run the task

        php admin/tool/task/cli/schedule_task.php --execute=\\tool_lp\\task\\complete_plans_task
        

      • Check that the plan has completed status

      Run the unittest:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      create plan with due date enabled and set to now and set status to draft Run the task php admin/tool/task/cli/schedule_task.php --execute=\\tool_lp\\task\\complete_plans_task Check that the plan has draft status Create plan with due date enabled and set to now and set status to active Run the task php admin/tool/task/cli/schedule_task.php --execute=\\tool_lp\\task\\complete_plans_task Check that the plan has completed status Run the unittest: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-52531_master
    • Sprint:
      CBE Sprint 3

      Description

      According to the logic in the scheduled task to complete the plans, all the due plans that are not complete are fetched. Only the ones that are due and not draft or complete should be fetched.

        Attachments

          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: