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

Better handling of template due date when creating plans

    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
      1. Create three templates (A, B, C)
      2. Hack the database to set a due date in the past on template A
      3. Set a due date in the future for B, and C doesn't have a due date
      4. Try to create user plans from the templates
        • A prevents you from doing so with a notice
        • B lets you do it
        • C lets you do it
      5. Try to add cohorts to sync to the templates
        • They all let you do it, but A displays a notice explaining that the sync will not occur.
      6. Hack the plan persistent to create a validation exception
      7. Run the schedule task to sync the templates
      8. Confirm that the exceptions are caught in the task and a debugging message is displayed for each.
      Show
      Create three templates (A, B, C) Hack the database to set a due date in the past on template A Set a due date in the future for B, and C doesn't have a due date Try to create user plans from the templates A prevents you from doing so with a notice B lets you do it C lets you do it Try to add cohorts to sync to the templates They all let you do it, but A displays a notice explaining that the sync will not occur. Hack the plan persistent to create a validation exception Run the schedule task to sync the templates Confirm that the exceptions are caught in the task and a debugging message is displayed for each.
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52696-master
    • Story Points:
      0.5
    • Sprint:
      CBE Sprint 4

      Description

      When creating plans from a template we should:

      1. Handle due date validation errors during in the scheduled task for template cohorts
      2. Hide the option to create plans from the UI when the validation of the due date will fail
      3. Hide the option to add cohorts to templates when the validation of the due date will fail

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Damyon Wiese
              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:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: