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

Event monitor: Handle module and user deletion

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: BACKEND
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Run unit tests and make sure they pass

      Test 2

      1. Go to a course
      2. Create a book
      3. Create a rule with chapter viewed event
      4. Subscribe to the rule for the instance of the book you just created.
      5. Delete the book module
      6. Make sure your subscription is deleted automatically as well.

      Test 3

      1. Now create many different rules
      2. Subscribe to them as a teacher
      3. Delete this user
      4. Now go to database and check tool_monitor_subscriptions and make sure all subscriptions for that user is gone.
      Show
      Test 1 Run unit tests and make sure they pass Test 2 Go to a course Create a book Create a rule with chapter viewed event Subscribe to the rule for the instance of the book you just created. Delete the book module Make sure your subscription is deleted automatically as well. Test 3 Now create many different rules Subscribe to them as a teacher Delete this user Now go to database and check tool_monitor_subscriptions and make sure all subscriptions for that user is gone.
    • Affected Branches:
      MOODLE_28_STABLE
    • Epic Link:
    • Pull Master Branch:
      MDL-47376-master
    • Sprint:
      BACKEND Sprint 17

      Description

      When a user is deleted all related subscriptions should be deleted.

      When a module is deleted all related subscriptions should be deleted.

      (also consider priority of the observers while creating this)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              John Okely
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: