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

Groups filter in forum summary report

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Create, or have an existing, course with at least one teacher, multiple students and at least 3 groups (which only contain a subset of enrolled users). There should be at least one student not assigned to any group. Ensure the teacher is enrolled in at least 2 of the groups.
      2. Make a note of which students are part of each group, and which is in no groups.
      3. Create a forum activity in the course, and add some posts and replies (make a note of the number of posts and replies by the users that have them).

      Test 1 - Unfiltered results are reported by default

      1. Log in as the teacher.
      2. Navigate to the forum.
      3. In the actions menu, follow the 'Summary report' option, to open the forum summary report page.
      4. CONFIRM The page shows a Groups filter button, with the text "Groups".
      5. CONFIRM There is a report displayed, with all users shown and correct report details.

      Test 2 - filter popover acts as expected

      1. Click the groups filter button.
      2. CONFIRM a popover appears, with the heading 'Groups', a checkbox list of all group names, a scrollbar, as well as 'Select all', 'Save' and 'Clear' options.
      3. CONFIRM none of the groups are selected by default.
      4. Click on multiple groups. CONFIRM they become checked.
      5. Click on 'Select all' and CONFIRM all groups become checked.
      6. Click the 'Clear' option, and CONFIRM all groups become unchecked.

      Test 3 - filter is applied as expected

      1. With the groups filter still open, select exactly 2 groups (the 2 that the teacher is enrolled in), then click 'Save'.
      2. CONFIRM the page is reloaded, re-generating the report automatically.
      3. CONFIRM the groups filter button now reads "Groups (2)".
      4. CONFIRM the re-generated report only lists users who belong to the groups you selected, and that the report details are correct - especially that the teacher's data is not multiplied because they belong to both groups (ie if they have 2 replies, it does not show 4 replies).
      5. Click the 'Surname' table heading on the report.
      6. CONFIRM the same list of users is shown (ie the groups filter is still being applied), but is ordered by surname.
      7. Click the 'Reset table preferences' link on the right of the page.
      8. CONFIRM the original order is restored, and is still only the users from the selected groups (ie the groups filter is still being applied).
      9. CONFIRM the groups filter still contains the text "Groups (2)".
      10. Click the groups filter button to open the popover.
      11. Click 'Clear' and then select 'No groups' from the bottom of the groups list, then click 'Save'.
      12. CONFIRM the report is re-generated, and now includes only the user who does not belong to any groups.
      13. CONFIRM the groups filter button now reads "Groups (1)".
      14. CONFIRM the report details are correct.
      15. Re-open the groups filter.
      16. Click 'Clear', so no checkboxes are selected, then click 'Save'.
      17. CONFIRM the groups filter button now reads "Groups".
      18. CONFIRM There is a report displayed, with all users shown and correct report details.**
      Show
      Setup Create, or have an existing, course with at least one teacher, multiple students and at least 3 groups (which only contain a subset of enrolled users). There should be at least one student not assigned to any group. Ensure the teacher is enrolled in at least 2 of the groups. Make a note of which students are part of each group, and which is in no groups. Create a forum activity in the course, and add some posts and replies (make a note of the number of posts and replies by the users that have them). Test 1 - Unfiltered results are reported by default Log in as the teacher. Navigate to the forum. In the actions menu, follow the 'Summary report' option, to open the forum summary report page. CONFIRM The page shows a Groups filter button, with the text "Groups". CONFIRM There is a report displayed, with all users shown and correct report details. Test 2 - filter popover acts as expected Click the groups filter button. CONFIRM a popover appears, with the heading 'Groups', a checkbox list of all group names, a scrollbar, as well as 'Select all', 'Save' and 'Clear' options. CONFIRM none of the groups are selected by default. Click on multiple groups. CONFIRM they become checked. Click on 'Select all' and CONFIRM all groups become checked. Click the 'Clear' option, and CONFIRM all groups become unchecked. Test 3 - filter is applied as expected With the groups filter still open, select exactly 2 groups (the 2 that the teacher is enrolled in), then click 'Save'. CONFIRM the page is reloaded, re-generating the report automatically. CONFIRM the groups filter button now reads "Groups (2)". CONFIRM the re-generated report only lists users who belong to the groups you selected, and that the report details are correct - especially that the teacher's data is not multiplied because they belong to both groups (ie if they have 2 replies, it does not show 4 replies). Click the 'Surname' table heading on the report. CONFIRM the same list of users is shown (ie the groups filter is still being applied), but is ordered by surname. Click the 'Reset table preferences' link on the right of the page. CONFIRM the original order is restored, and is still only the users from the selected groups (ie the groups filter is still being applied). CONFIRM the groups filter still contains the text "Groups (2)". Click the groups filter button to open the popover. Click 'Clear' and then select 'No groups' from the bottom of the groups list, then click 'Save'. CONFIRM the report is re-generated, and now includes only the user who does not belong to any groups. CONFIRM the groups filter button now reads "Groups (1)". CONFIRM the report details are correct. Re-open the groups filter. Click 'Clear', so no checkboxes are selected, then click 'Save'. CONFIRM the groups filter button now reads "Groups". CONFIRM There is a report displayed, with all users shown and correct report details.**
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-66268-updated
    • Story Points:
      2
    • Sprint:
      Internationals - 3.8 Sprint 4, Internationals - 3.8 Sprint 5, Internationals - 3.8 Sprint 6, Internationals - 3.8 Sprint 7, Internationals - 3.8 Sprint 8

      Description

      Set up the filter area in the report interface, and add ability within that filter area to choose which group(s) within that forum are shown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michaelh Michael Hawkins
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                Shamim Rezaie
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, 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:
                  18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 4 days, 1 hour, 34 minutes
                  2w 4d 1h 34m