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

Deleting a forum discussion does not trigger post_deleted events

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.8, 2.9
    • 2.8.9, 2.9.3
    • Forum
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-51782_master
    • Hide
      Test 1
      1. Enable standard logging (Site administration > Plugins > Logging).
      2. Create a forum.
      3. Add a discussion.
      4. Add replies.
      5. Delete the discussion
      6. Visit your 'mdl_logstore_standard_log' stable and confirm there are post_deleted events for the replies (and one for the discussion - when you create a discussion it also creates a post).
      Test 2
      1. Create a forum.
      2. Add a discussion.
      3. Add replies.
      4. Delete one of the replies.
      5. Visit your 'mdl_logstore_standard_log' stable and confirm there is a post_deleted event for the reply you deleted.
      Test 3
      1. Run all the unit tests in mod/forum/tests.
      Test 4
      1. Run all behat tests with the tag @mod_forum.
      Show
      Test 1 Enable standard logging (Site administration > Plugins > Logging). Create a forum. Add a discussion. Add replies. Delete the discussion Visit your 'mdl_logstore_standard_log' stable and confirm there are post_deleted events for the replies (and one for the discussion - when you create a discussion it also creates a post). Test 2 Create a forum. Add a discussion. Add replies. Delete one of the replies. Visit your 'mdl_logstore_standard_log' stable and confirm there is a post_deleted event for the reply you deleted. Test 3 Run all the unit tests in mod/forum/tests. Test 4 Run all behat tests with the tag @mod_forum.

    Description

      1. Enable standard logging (Site administration > Plugins > Logging).
      2. Create a forum.
      3. Add a discussion.
      4. Add replies.
      5. Delete the discussion
      6. Visit your 'mdl_logstore_standard_log' stable and notice how there are no 'post_deleted' events.

      Attachments

        Issue Links

          Activity

            People

              markn Mark Nelson
              markn Mark Nelson
              Adrian Greeve Adrian Greeve
              Andrew Lyons Andrew Lyons
              Rajesh Taneja Rajesh Taneja
              Adrian Greeve, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/15