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

Private replies should be included in the forum summary report

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Prepare a course containing 3 editing teachers (teacher1, teacher2, teacher3) and a forum activity (forum1).
      2. Login as each user, and submit the following discussion post/replies, noting the time displayed on each post (note down the time as time1):
        User Replying to Text
        teacher1 new discussion Discussion1
        teacher2 Discussion1 reply1
        teacher3 reply2 reply2
      1. Wait at least 1 minute, so that some time has elapsed.
      2. Log back in as teacher1, and send a private reply to teacher2's "reply1", with the text "private1" (ensure you have checked the "Reply privately" checkbox).
      3. Note down the time of the private reply as time2 (it should be different to the other post times from step 2).
      4. Log out, and log back in as site admin.
      5. Navigate to Site administration > Users > Permissions > Define roles > Teacher, and click "Edit".
      6. Scroll down to the filter and search for "mod/forum:readprivatereplies".
      7. Uncheck "Allow" next to that capability, and click "Save changes".
      8. Log out.

      Testing - no "view private replies" capability

      1. Log in as teacher1, and Navigate to forum1.
      2. Open the actions menu, and click the "Summary report" option.
      3. CONFIRM you see the following report details:
        First/surname Discussions Replies Earliest date Latest date
        teacher1 1 1 time1 time2
        teacher2 0 1 time1 time1
        teacher3 0 1 time1 time1
      1. Log out, and log in as teacher2.
      2. Navigate back to the forum1 summary report.
      3. CONFIRM you see the same details as step 3.
      4. Log out, and log in as teacher3.
      5. Navigate back to the forum1 summary report.
      6. CONFIRM teacher1's private reply is no longer counted in the report, ie:
        First/surname Discussions Replies Earliest date Latest date
        teacher1 1 0 time1 time1
        teacher2 0 1 time1 time1
        teacher3 0 1 time1 time1
      1. Log out.

      Testing - with "view private replies" capability

      1. Log in as site admin.
      2. Return to the editing teacher "define roles" site administration menu (the same page in step 7 of Setup).
      3. In the edit screen, again search for the "mod/forum:readprivatereplies" capability.
      4. Check "Allow" next to the capability, and click "Save changes".
      5. Log out.
      6. Log in in as each of the 3 teachers, and CONFIRM that all now see the same report, which includes the private reply:
        teacher1 1 1 time1 time2
        teacher2 0 1 time1 time1
        teacher3 0 1 time1 time1
      Show
      Setup Prepare a course containing 3 editing teachers (teacher1, teacher2, teacher3) and a forum activity (forum1). Login as each user, and submit the following discussion post/replies, noting the time displayed on each post (note down the time as time1): User Replying to Text teacher1 new discussion Discussion1 teacher2 Discussion1 reply1 teacher3 reply2 reply2 Wait at least 1 minute, so that some time has elapsed. Log back in as teacher1, and send a private reply to teacher2's "reply1", with the text "private1" (ensure you have checked the "Reply privately" checkbox). Note down the time of the private reply as time2 (it should be different to the other post times from step 2). Log out, and log back in as site admin. Navigate to Site administration > Users > Permissions > Define roles > Teacher, and click "Edit". Scroll down to the filter and search for " mod/forum:readprivatereplies ". Uncheck "Allow" next to that capability, and click "Save changes". Log out. Testing - no "view private replies" capability Log in as teacher1, and Navigate to forum1. Open the actions menu, and click the "Summary report" option. CONFIRM you see the following report details: First/surname Discussions Replies Earliest date Latest date teacher1 1 1 time1 time2 teacher2 0 1 time1 time1 teacher3 0 1 time1 time1 Log out, and log in as teacher2. Navigate back to the forum1 summary report. CONFIRM you see the same details as step 3. Log out, and log in as teacher3. Navigate back to the forum1 summary report. CONFIRM teacher1's private reply is no longer counted in the report, ie: First/surname Discussions Replies Earliest date Latest date teacher1 1 0 time1 time1 teacher2 0 1 time1 time1 teacher3 0 1 time1 time1 Log out. Testing - with "view private replies" capability Log in as site admin. Return to the editing teacher "define roles" site administration menu (the same page in step 7 of Setup). In the edit screen, again search for the " mod/forum:readprivatereplies " capability. Check "Allow" next to the capability, and click "Save changes". Log out. Log in in as each of the 3 teachers, and CONFIRM that all now see the same report, which includes the private reply: teacher1 1 1 time1 time2 teacher2 0 1 time1 time1 teacher3 0 1 time1 time1
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-66625-master
    • Story Points:
      2
    • Sprint:
      Internationals - 3.8 Sprint 7, Internationals - 3.8 Sprint 8

      Description

      We currently blanket ignore private replies. We will need to consider them at some point

        Attachments

        1. 1.png
          1.png
          146 kB
        2. 2.png
          2.png
          185 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 14 minutes
                  2d 14m