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

Implement summary report pagination size

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Hide

      Setup

      1. Log in as admin.
      2. Create a course, 'course1' with the following users:
        teacher1
        teacher2
        student1
        student2
      3. Create 2 groups in the course, group1 and group2.
      4. Assign the following users to the groups:
        Group Users
        group1 teacher1, student1, teacher2
        group2 teacher2, student2
      5. Navigate to course1 and add a forum activity, forum1. Under 'Common module settings', set 'Group mode' to 'Visible groups'.
      6. Click 'Save and display'.
      7. Log in as the following users, and make the relevant number of discussion/reply posts within forum1, under the relevant groups (Note: Ensure the correct group is selected when creating the discussions, and the replies are made to the discussion in the relevant group, or the results will not be as expected):
        User Group Discussions Replies
        teacher1 group1 1 0
        student1 group1 0 1
        teacher2 group1 0 2
        student2 group2 1 3

      Testing

      1. Log in as teacher1.
      2. Navigate to forum1, open the actions menu and click "Summary report".
      3. CONFIRM the following report information is displayed:
        First/surname Discussions Replies
        teacher1 1 0
        student1 0 1
        teacher2 0 2
        student2 1 3
      4. Scroll to the bottom of the report table, and CONFIRM that immediately below the report on the right side, there is "Per page" text with a dropdown.
      5. CONFIRM the default value visible on the dropdown is 50.
      6. Click on the dropdown, and CONFIRM the values available are 50, 100 and 200.
      7. With the dropdown still open, click on the "100" option.
      8. CONFIRM the page reloads and the URL contains "&perpage=100".
      9. CONFIRM the report still shows the same users and values as step #3.
      10. Manually change the "&perpage=100" to "&perpage=2" in the address bar, and press enter to reload the page.
      11. CONFIRM the report is now paginated, with only 2 users showing, and 2 pages available.
      12. Scroll to the bottom of the report.
      13. CONFIRM the "Per page" dropdown shows "50".
      14. CONFIRM the features displayed below the report table are displayed as follows:
        1. "With selected users..." text/dropdown are immediately below the report.
        2. The download text/dropdown are immediately below the "With selected users..." text/dropdown, with the text and dropdowns both being left aligned exactly the same for both (ie they all line up).
        3. The "With selected users..." text/dropdown and "Per page" text/dropdown are one the same line on the page, and the "Per page option" is aligned to the right of the page.
      15. CONFIRM the report pagination page numbers at the bottom of the page (ie buttons with "1" and "2" on them) are positioned below all of the "With selected users...", "Per page" and "Download table data as" options.
      16. Open the "Groups" filter.
      17. Select "group1" and press "Save".
      18. CONFIRM the groups filter now displays "Groups(1)".
      19. CONFIRM the report is still paginated into 2 pages.
      20. Click the "Number of replies posted" report heading.
      21. CONFIRM the report now shows the users teacher1 and student1 (ie the results are ordered by replies in ascending order).
      22. Expand the "Per page" dropdown and select "100". Wait for the page to re-load.
      23. CONFIRM the groups filter still displays "Groups(1)".
      24. CONFIRM the "Per page" dropdown displays "100".
      25. CONFIRM the table is still filtered by group1 and ordered by "Number of replies posted" in ascending order, ie only the following users are displayed, in this order:
        teacher1
        student1
        teacher2
      26. Expand the "Per page" dropdown and select "200". Wait for the page to re-load.
      27. CONFIRM the page looks the same as when "100" was selected, but the "Per page" dropdown now displays "200", and the URL now contains "&perpage=200".
      Show
      Setup Log in as admin. Create a course, 'course1' with the following users: teacher1 teacher2 student1 student2 Create 2 groups in the course, group1 and group2. Assign the following users to the groups: Group Users group1 teacher1, student1, teacher2 group2 teacher2, student2 Navigate to course1 and add a forum activity, forum1. Under 'Common module settings', set 'Group mode' to 'Visible groups'. Click 'Save and display'. Log in as the following users, and make the relevant number of discussion/reply posts within forum1, under the relevant groups ( Note: Ensure the correct group is selected when creating the discussions, and the replies are made to the discussion in the relevant group, or the results will not be as expected): User Group Discussions Replies teacher1 group1 1 0 student1 group1 0 1 teacher2 group1 0 2 student2 group2 1 3 Testing Log in as teacher1. Navigate to forum1, open the actions menu and click "Summary report". CONFIRM the following report information is displayed: First/surname Discussions Replies teacher1 1 0 student1 0 1 teacher2 0 2 student2 1 3 Scroll to the bottom of the report table, and CONFIRM that immediately below the report on the right side, there is "Per page" text with a dropdown. CONFIRM the default value visible on the dropdown is 50. Click on the dropdown, and CONFIRM the values available are 50, 100 and 200. With the dropdown still open, click on the "100" option. CONFIRM the page reloads and the URL contains "&perpage=100". CONFIRM the report still shows the same users and values as step #3. Manually change the "&perpage=100" to "&perpage=2" in the address bar, and press enter to reload the page. CONFIRM the report is now paginated, with only 2 users showing, and 2 pages available. Scroll to the bottom of the report. CONFIRM the "Per page" dropdown shows "50". CONFIRM the features displayed below the report table are displayed as follows: "With selected users..." text/dropdown are immediately below the report. The download text/dropdown are immediately below the "With selected users..." text/dropdown, with the text and dropdowns both being left aligned exactly the same for both (ie they all line up). The "With selected users..." text/dropdown and "Per page" text/dropdown are one the same line on the page, and the "Per page option" is aligned to the right of the page. CONFIRM the report pagination page numbers at the bottom of the page (ie buttons with "1" and "2" on them) are positioned below all of the "With selected users...", "Per page" and "Download table data as" options. Open the "Groups" filter. Select "group1" and press "Save". CONFIRM the groups filter now displays "Groups(1)". CONFIRM the report is still paginated into 2 pages. Click the "Number of replies posted" report heading. CONFIRM the report now shows the users teacher1 and student1 (ie the results are ordered by replies in ascending order). Expand the "Per page" dropdown and select "100". Wait for the page to re-load. CONFIRM the groups filter still displays "Groups(1)". CONFIRM the "Per page" dropdown displays "100". CONFIRM the table is still filtered by group1 and ordered by "Number of replies posted" in ascending order, ie only the following users are displayed, in this order: teacher1 student1 teacher2 Expand the "Per page" dropdown and select "200". Wait for the page to re-load. CONFIRM the page looks the same as when "100" was selected, but the "Per page" dropdown now displays "200", and the URL now contains "&perpage=200".
    • 2
    • Internationals - 3.8 Sprint 5, Internationals - 3.8 Sprint 6, Internationals - 3.8 Alpha

      Implement results per page on the forum summary report, to control how many results are returned during pagination.

      To start with, we should only accept 50 (default), 100, 200 as options, possibly fall back to the defaultĀ  if another value is specified, since it is not worth failing the request just for an invalid pagination value.

      Be aware that the summary report currently implements the null privacy provider, so unless you wish to set up the provider, in the first instance it is probably better to just keep the 50 default and not store a user preference for it.

            michaelh Michael Hawkins
            dobedobedoh Andrew Lyons
            Peter Dias Peter Dias
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 38 minutes
                2d 38m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.