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

Create C(R)UD events for templates

    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

      Create a template.
      Edit it and modify any field.
      Go to Administration > Reports > Logs
      Check you have "Standard logs" in the field before button "Get these logs".
      Click on the button "Get these logs".
      You must see information indicating that the template was created and updated.
      Got back to template and duplicate it.
      Delete the first template created.
      Go to Administration > Reports > Logs
      Check you have "Standard logs" in the field before button "Get these logs".
      Click on the button "Get these logs".
      You must see information indicating that a new template was created.
      You must see information indicating that the first template was deleted.

      Run unittest tool_lp_testsuite

      Show
      Create a template. Edit it and modify any field. Go to Administration > Reports > Logs Check you have "Standard logs" in the field before button "Get these logs". Click on the button "Get these logs". You must see information indicating that the template was created and updated. Got back to template and duplicate it. Delete the first template created. Go to Administration > Reports > Logs Check you have "Standard logs" in the field before button "Get these logs". Click on the button "Get these logs". You must see information indicating that a new template was created. You must see information indicating that the first template was deleted. Run unittest tool_lp_testsuite
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52711_master
    • Story Points:
      0.5
    • Sprint:
      CBE Sprint 4, CBE Sprint 5

      Description

      This issue will create 3 events:

      • \tool_lp\event\template_created
      • \tool_lp\event\template_updated
      • \tool_lp\event\template_deleted

      From the top of my head I don't see any information to place in other.

      Those events should be triggered anywhere where a template is created, updated, or deleted, if the code is well structured this should be limited to API methods.

      Tests are required for each event. See events_test.php files.

        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:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: