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

Setup filter area in report + Add ability to choose group(s)

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: Forum
    • 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.
      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 (all)".
      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 all of the groups are selected by default.
      4. Click the 'Clear' option, and CONFIRM all groups become unchecked.
      5. Click on multiple groups. CONFIRM they become checked.
      6. Click on 'Select all' and CONFIRM all groups become checked.

      Test 3 - filter is applied as expected

      1. With the groups filter still open, click 'Clear'.
      2. Select exactly 2 groups, then click 'Save'.
      3. CONFIRM the page is reloaded, re-generating the report automatically.
      4. CONFIRM the groups filter button now reads "Groups (2)".
      5. CONFIRM the re-generated report only lists users who belong to the groups you selected, and that the report details are correct.
      6. Click the 'Surname' table heading on the report.
      7. CONFIRM the same list of users is shown (ie the groups filter is still being applied), but is ordered by surname.
      8. Click the 'Reset table preferences' link on the right of the page.
      9. CONFIRM the original order is restored, and is still only the users from the selected groups (ie the groups filter is still being applied).
      10. CONFIRM the groups filter still contains the text "Groups (2)".
      11. Click the groups filter button to open the popover.
      12. Click 'Clear' so no groups are selected, then click 'Save'.
      13. CONFIRM the report is re-generated, and now includes only the user who does not belong to any groups.
      14. CONFIRM the groups filter button now reads "Groups (0)".
      15. CONFIRM the report details are correct.
      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. 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 (all)". 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 all of the groups are selected by default. Click the 'Clear' option, and CONFIRM all groups become unchecked. Click on multiple groups. CONFIRM they become checked. Click on 'Select all' and CONFIRM all groups become checked. Test 3 - filter is applied as expected With the groups filter still open, click 'Clear'. Select exactly 2 groups, 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. 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' so no groups are selected, 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 (0)". CONFIRM the report details are correct.
    • Affected Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-66268-updated
    • Story Points:
      6
    • Sprint:
      Internationals - 3.8 Sprint 4, Internationals - 3.8 Sprint 5, Internationals - 3.8 Sprint 6, Internationals - 3.8 Sprint 7

      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, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days Original Estimate - 2 days
                  2d
                  Remaining:
                  Time Spent - 2 weeks, 1 day, 5 hours, 17 minutes Remaining Estimate - 51 minutes
                  51m
                  Logged:
                  Time Spent - 2 weeks, 1 day, 5 hours, 17 minutes Remaining Estimate - 51 minutes
                  2w 1d 5h 17m