Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12944 Forum: forum and discussion locking
  3. MDL-55982

Add support for automatic locking of an individual forum discussion after a period of inactivity

    XMLWordPrintable

Details

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-55982-master
    • Hide
      1. Create new forums for each type
      2. Do not specify a value for locking discussions automatically
      3. Post in each forum
      4. Login as a student
        1. verify that you can reply to each of them (except news)
      5. Open your favourite SQL client and run:

        UPDATE mdl_forum_discussions SET timemodified = timemodified - 86400;
        

        1. verify that you can still reply to each discussion of them (except news)
        2. actually post a reply and confirm that you can make it (except news)
      6. Re-run the SQL query
      7. As admin:
      8. Edit each of the forums to set a lockdiscussionsafter value of 1 day
        1. Verify that each of them (except single) shows that the discussion is archived but you still have the edit link and can reply
        2. actually post a reply and confirm that you can make it
      9. Re-run the SQL query
      10. As student:
        1. Verify that the Reply link is missing for all (except single)
      Show
      Create new forums for each type Do not specify a value for locking discussions automatically Post in each forum Login as a student verify that you can reply to each of them (except news) Open your favourite SQL client and run: UPDATE mdl_forum_discussions SET timemodified = timemodified - 86400; verify that you can still reply to each discussion of them (except news) actually post a reply and confirm that you can make it (except news) Re-run the SQL query As admin: Edit each of the forums to set a lockdiscussionsafter value of 1 day Verify that each of them (except single) shows that the discussion is archived but you still have the edit link and can reply actually post a reply and confirm that you can make it Re-run the SQL query As student: Verify that the Reply link is missing for all (except single)

    Description

      When a forum discussion is inactive for a period, we should provide a mechanism for locking that discussion.

      This helps to ensure that old and irrelevant discussions are not brought re-opened when a new discussion would better suit the purpose.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Juan Leyva Juan Leyva
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/16