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.