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

Add event logging to forum summary report

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Log in as admin.
      2. Create a course, 'course1', which has teacher1 and student1 enrolled.
      3. Create a forum activity, 'forum1', in course1.
      4. Navigate to Site administration > Users > Permissions > Define roles and select the edit cog for 'Student'.
      5. In the capability list, filter for 'forumreport/summary:view'.
      6. Check 'Allow' on the 'forumreport/summary:view' capability and press 'Save changes'.
      7. Log in as teacher1 and student1 and add a couple of discussions and replies to forum1.
      8. Visit each user's profile page, and note down their user ID (it is given in the profile page's URL in the format 'id=y'). These will be referenced later.

      Testing

      1. Log in as teacher1.
      2. Navigate to forum1.
      3. Open the forum actions dropdown and select 'Summary report'.
      4. Note down the forum ID value in the page's URL (it will be in the format "forumid=x"), it will be referenced later.
      5. Scroll to the bottom of the report, and press the 'Download' button. You can click cancel on the download prompt (you don't need the file for this test).
      6. Log out, and log in as student1.
      7. Navigate to forum1.
      8. Open the forum actions dropdown and select 'Summary report'.
      9. Scroll to the bottom of the report, and press the 'Download' button. You can click cancel on the download prompt (you don't need the file for this test).
      10. Log out, and log back in as admin.
      11. Navigate to Site administration > Reports > Logs.
      12. In the 'All participants' dropdown, select teacher1, and in the 'All days' dropdown, select 'Today'.
      13. Press 'Get these logs'.
      14. CONFIRM there are 2 log entries with a time approximately when you visited the summary report in the steps above, relating to the Component 'Forum summary report'.
      15. CONFIRM Those log entries contain the following details. In the description, the value for 'x' should match the user ID value you noted down for teacher1 during setup, and the value for 'y' should match the forum ID you noted down in testing step 4:
        User full name Affected users Event context Component Event name Description
        teacher1 - Forum: Forum1 Forum summary report Forum summary report downloaded The user with id 'x' downloaded the summary report for forum ID 'y'
        teacher1 - Forum: Forum1 Forum summary report Forum summary report viewed The user with id 'x' viewed the summary report for forum ID 'y'
      16. CONFIRM on each of the two log entries, the 'Event context' is hyperlinked to forum1.
      17. CONFIRM on each of the two log entries, the 'Even name' is hyperlinked to the summary report for forum1.
      18. Change the log's 'participants' dropdown from teacher1 to student1, then press "Get these logs".
      19. CONFIRM there are 2 log entries with a time approximately when you visited the summary report in the steps above, relating to the Component 'Forum summary report'.
      20. CONFIRM Those log entries contain the following details. In the description, the value for 'x' should match the user ID value you noted down for student1 during setup, and the value for 'y' should match the forum ID you noted down in testing step 4:
        User full name Affected users Event context Component Event name Description
        student1 - Forum: Forum1 Forum summary report Forum summary report downloaded The user with id 'x' downloaded their own summary report for forum ID 'y'
        student1 - Forum: Forum1 Forum summary report Forum summary report viewed The user with id 'x' viewed their own summary report for forum ID 'y'
      21. CONFIRM on each of the two log entries, the 'Event context' is hyperlinked to forum1.
      22. CONFIRM on each of the two log entries, the 'Even name' is hyperlinked to the summary report for forum1.

      Note: If you wish to return your site to the default capabilities, remember to remove the 'forumreport/summary:view' capability from students once you have completed testing.

      Show
      Setup Log in as admin. Create a course, 'course1', which has teacher1 and student1 enrolled. Create a forum activity, 'forum1', in course1. Navigate to Site administration > Users > Permissions > Define roles and select the edit cog for 'Student'. In the capability list, filter for 'forumreport/summary:view'. Check 'Allow' on the 'forumreport/summary:view' capability and press 'Save changes'. Log in as teacher1 and student1 and add a couple of discussions and replies to forum1. Visit each user's profile page, and note down their user ID (it is given in the profile page's URL in the format 'id=y'). These will be referenced later. Testing Log in as teacher1. Navigate to forum1. Open the forum actions dropdown and select 'Summary report'. Note down the forum ID value in the page's URL (it will be in the format "forumid=x"), it will be referenced later. Scroll to the bottom of the report, and press the 'Download' button. You can click cancel on the download prompt (you don't need the file for this test). Log out, and log in as student1. Navigate to forum1. Open the forum actions dropdown and select 'Summary report'. Scroll to the bottom of the report, and press the 'Download' button. You can click cancel on the download prompt (you don't need the file for this test). Log out, and log back in as admin. Navigate to Site administration > Reports > Logs . In the 'All participants' dropdown, select teacher1, and in the 'All days' dropdown, select 'Today'. Press 'Get these logs'. CONFIRM there are 2 log entries with a time approximately when you visited the summary report in the steps above, relating to the Component 'Forum summary report'. CONFIRM Those log entries contain the following details. In the description, the value for 'x' should match the user ID value you noted down for teacher1 during setup, and the value for 'y' should match the forum ID you noted down in testing step 4: User full name Affected users Event context Component Event name Description teacher1 - Forum: Forum1 Forum summary report Forum summary report downloaded The user with id 'x' downloaded the summary report for forum ID 'y' teacher1 - Forum: Forum1 Forum summary report Forum summary report viewed The user with id 'x' viewed the summary report for forum ID 'y' CONFIRM on each of the two log entries, the 'Event context' is hyperlinked to forum1. CONFIRM on each of the two log entries, the 'Even name' is hyperlinked to the summary report for forum1. Change the log's 'participants' dropdown from teacher1 to student1, then press "Get these logs". CONFIRM there are 2 log entries with a time approximately when you visited the summary report in the steps above, relating to the Component 'Forum summary report'. CONFIRM Those log entries contain the following details. In the description, the value for 'x' should match the user ID value you noted down for student1 during setup, and the value for 'y' should match the forum ID you noted down in testing step 4: User full name Affected users Event context Component Event name Description student1 - Forum: Forum1 Forum summary report Forum summary report downloaded The user with id 'x' downloaded their own summary report for forum ID 'y' student1 - Forum: Forum1 Forum summary report Forum summary report viewed The user with id 'x' viewed their own summary report for forum ID 'y' CONFIRM on each of the two log entries, the 'Event context' is hyperlinked to forum1. CONFIRM on each of the two log entries, the 'Even name' is hyperlinked to the summary report for forum1. Note: If you wish to return your site to the default capabilities, remember to remove the 'forumreport/summary:view' capability from students once you have completed testing.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
    • Sprint:
      Internationals - 3.8 Alpha

      Description

      The forum summary report needs to include some event logging for various report tasks when they are implemented, such as:

      1. Viewing the report.
      2. Downloading the report.
      3. Bulk user messaging - not required, mesaging already records an event for messages sent.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michaelh Michael Hawkins
              Reporter:
              michaelh Michael Hawkins
              Peer reviewer:
              Simey Lameze
              Integrator:
              Andrew Nicols
              Tester:
              Gladys Basiana
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              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 - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours, 25 minutes
                  1d 2h 25m