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

Forum report: Basic skeleton

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Create a course with 1 teacher (teacher1), and 2 students (student1 and student2) enrolled. Also create a student (student3) who is not enrolled in the course.
      2. Create a forum activity in the course.
      3. Log into the course as student1
      4. Create 1 discussion, then log out.
      5. Log into the course as teacher1.
      6. Reply to student1's discussion, then create 2 new discussions.
      7. Log out.

      Test 1 - capability required to view any report

      1. Log in as student1.
      2. Navigate to the forum.
      3. In the actions menu, CONFIRM the 'Forum summary report' option is not visible.
      4. Log out, and log in as site admin.
      5. Assign the student role the 'forumreport/summary:accessreport' capability.
      6. Log out, and log back in as student1.
      7. Navigate to the forum.
      8. In the actions menu, CONFIRM the 'Forum summary report' option is visible.
      9. Select the 'Forum summary report' option.
      10. CONFIRM the forum summary report loads the general page contents as expected (header, navigation, footer, breadcrumbs).
      11. CONFIRM The heading above the summary table is in the format Forum summary report - {forum name}.
      12. CONFIRM The summary report data loads only student1's details, including the following columns: Firstname/surname, number of discussions posted, number of replies posted.
      13. CONFIRM The number of discussions posted is 1, and CONFIRM the number of replies posted is 0.
      14. In a separate browser, or incognito session, log into the site as admin (while remaining logged in as the student in the other session).
      15. Navigate to Site Administration > Users > Permissions > Define roles, then select the 'edit' cog on the Student row.
      16. Uncheck the forumreport/summary:accessreport capability and click 'save changes'.
      17. Return to the window containing your student session (with the report open) and refresh the page.
      18. CONFIRM you are redirected back to the forum homepage.
      19. Open the actions menu and CONFIRM the 'Forum summary report' option is no longer visible.
      20. Log out.

      Test 2 - additional capability required to view all enrolled users report

      1. Log in as teacher1.
      2. Navigate to the forum.
      3. In the actions menu, CONFIRM the 'Forum summary report' option is visible.
      4. Select the 'Forum summary report' option.
      5. CONFIRM the forum summary report loads the general page contents as expected (header, navigation, footer, breadcrumbs).
      6. CONFIRM The summary report data loads data for all users, ie teacher1, student1 and student2, including Firstname/surname, as well as the following:
        Student1: 1 discussions posted, 0 replies posted
        Student2: 0 discussions posted, 0 replies posted
        Teacher1: 2 discussions posted, 1 replies posted
      7. CONFIRM Student 3 does not appear in the report.
      8. Click on the table heading 'Number of discussions posted'.
      9. CONFIRM the rows are correctly sorted (ascending order).
      10. Again, click on the table heading 'Number of discussions posted'.
      11. CONFIRM the rows are correctly sorted (descending order).
      12. Click 'Reset table preferences' and CONFIRM the sorting returns back to the default view.

      Test 3 - pagination

      • While still logged in as teacher1, update the report page URL to include &perpage=1 at the end.
      • CONFIRM only one row is now visible in the table.
      • CONFIRM pagination is now showing 3 pages.
      • Click the page 3 option and CONFIRM a different user's data is displayed.
      • Update the URL to include &page=5 at the end.
      • CONFIRM 'Nothing to display' is displayed instead of the table.
      Show
      Setup Create a course with 1 teacher (teacher1), and 2 students (student1 and student2) enrolled. Also create a student (student3) who is not enrolled in the course. Create a forum activity in the course. Log into the course as student1 Create 1 discussion, then log out. Log into the course as teacher1. Reply to student1's discussion, then create 2 new discussions. Log out. Test 1 - capability required to view any report Log in as student1. Navigate to the forum. In the actions menu, CONFIRM the 'Forum summary report' option is not visible. Log out, and log in as site admin. Assign the student role the ' forumreport/summary:accessreport ' capability. Log out, and log back in as student1. Navigate to the forum. In the actions menu, CONFIRM the 'Forum summary report' option is visible. Select the 'Forum summary report' option. CONFIRM the forum summary report loads the general page contents as expected (header, navigation, footer, breadcrumbs). CONFIRM The heading above the summary table is in the format Forum summary report - {forum name} . CONFIRM The summary report data loads only student1's details, including the following columns: Firstname/surname, number of discussions posted, number of replies posted. CONFIRM The number of discussions posted is 1, and CONFIRM the number of replies posted is 0. In a separate browser, or incognito session, log into the site as admin (while remaining logged in as the student in the other session). Navigate to Site Administration > Users > Permissions > Define roles, then select the 'edit' cog on the Student row. Uncheck the forumreport/summary:accessreport capability and click 'save changes'. Return to the window containing your student session (with the report open) and refresh the page. CONFIRM you are redirected back to the forum homepage. Open the actions menu and CONFIRM the 'Forum summary report' option is no longer visible. Log out. Test 2 - additional capability required to view all enrolled users report Log in as teacher1. Navigate to the forum. In the actions menu, CONFIRM the 'Forum summary report' option is visible. Select the 'Forum summary report' option. CONFIRM the forum summary report loads the general page contents as expected (header, navigation, footer, breadcrumbs). CONFIRM The summary report data loads data for all users, ie teacher1, student1 and student2, including Firstname/surname, as well as the following: Student1: 1 discussions posted, 0 replies posted Student2: 0 discussions posted, 0 replies posted Teacher1: 2 discussions posted, 1 replies posted CONFIRM Student 3 does not appear in the report. Click on the table heading 'Number of discussions posted'. CONFIRM the rows are correctly sorted (ascending order). Again, click on the table heading 'Number of discussions posted'. CONFIRM the rows are correctly sorted (descending order). Click 'Reset table preferences' and CONFIRM the sorting returns back to the default view. Test 3 - pagination While still logged in as teacher1, update the report page URL to include &perpage=1 at the end. CONFIRM only one row is now visible in the table. CONFIRM pagination is now showing 3 pages. Click the page 3 option and CONFIRM a different user's data is displayed. Update the URL to include &page=5 at the end. CONFIRM 'Nothing to display' is displayed instead of the table.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Story Points:
      1
    • Sprint:
      Internationals - 3.8 Sprint 3, Internationals - 3.8 Sprint 4, Internationals - 3.8 Sprint 5, Internationals - 3.8 Sprint 6

      Description

      Create a basic skeleton for the Forum report.

      1. Create new forum subplugin for forumreport
      2. Summary for single forum
      3. No Download required initially
      4. No filtering required initially
      5. Basic fields: Names, Reply counts, Created discussion count

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michaelh Michael Hawkins
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                Simey Lameze
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

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

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 4 days, 4 hours, 48 minutes
                  1w 4d 4h 48m