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

Participants page pagination doesn't reset when applying filters

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-69241-master
    • Hide

      Prerequisites

      1. Have at course with 60+ students and 5 teachers.

      Testing

      1. Log in as one of the teachers in the course.
      2. Navigate to the participants page of the course.
      3. CONFIRM that above the first name/surname filters you see "65 participants found" (or whatever your number of enrolled users is).
      4. Note down the full name of one of the participants near the top of the list (referred to later as user1).
      5. Click on page 3 of the table pagination.
      6. CONFIRM the list of users changes to show the third page of results.
      7. Set the first name filter to the first letter of user1's first name.
      8. CONFIRM the list of users is now filtered by that letter and you can see user1's name in the list.
      9. Set the first name filter back to "All".
      10. CONFIRM all users are again listed, and CONFIRM pagination is set to page 1.
      11. Click on page 3 of the table pagination.
      12. Set the surname filter to the first letter of user1's surname.
      13. CONFIRM the list of users is now filtered by that letter and you can see user1's name in the list.
      14. Set the first name filter back to "All".
      15. CONFIRM all users are again listed, and CONFIRM pagination is set to page 1.
      16. Set the participants filter at the top of the page to Match [Any] [Roles], and set the value to "Teacher".
      17. Press "Apply filters".
      18. CONFIRM that you now see the list of 5 teachers in the participants table on the page.
      19. CONFIRM above the first name/surname filters you now see "5 participants found".
      20. CONFIRM there is no pagination option above the table of participants.
      21. Click "Clear filters" on the participants filter.
      22. CONFIRM the table of participants has returned to showing all participants.
      23. CONFIRM the pagination has returned, and CONFIRM it is now on page 1.
      24. CONFIRM above the first name/surname filters you now see "65 participants found" (or whatever your number of enrolled users is).
      25. Click on page 3 of the table pagination.
      26. Click the "Email address" heading.
      27. CONFIRM the user list is now sorted by email and CONFIRM that the pagination is now set to page 1.
      Show
      Prerequisites Have at course with 60+ students and 5 teachers. Testing Log in as one of the teachers in the course. Navigate to the participants page of the course. CONFIRM that above the first name/surname filters you see "65 participants found" (or whatever your number of enrolled users is). Note down the full name of one of the participants near the top of the list (referred to later as user1 ). Click on page 3 of the table pagination. CONFIRM the list of users changes to show the third page of results. Set the first name filter to the first letter of user1's first name. CONFIRM the list of users is now filtered by that letter and you can see user1's name in the list. Set the first name filter back to "All". CONFIRM all users are again listed, and CONFIRM pagination is set to page 1. Click on page 3 of the table pagination. Set the surname filter to the first letter of user1's surname. CONFIRM the list of users is now filtered by that letter and you can see user1's name in the list. Set the first name filter back to "All". CONFIRM all users are again listed, and CONFIRM pagination is set to page 1. Set the participants filter at the top of the page to Match [Any] [Roles] , and set the value to "Teacher". Press "Apply filters". CONFIRM that you now see the list of 5 teachers in the participants table on the page. CONFIRM above the first name/surname filters you now see "5 participants found". CONFIRM there is no pagination option above the table of participants. Click "Clear filters" on the participants filter. CONFIRM the table of participants has returned to showing all participants. CONFIRM the pagination has returned, and CONFIRM it is now on page 1. CONFIRM above the first name/surname filters you now see "65 participants found" (or whatever your number of enrolled users is). Click on page 3 of the table pagination. Click the "Email address" heading. CONFIRM the user list is now sorted by email and CONFIRM that the pagination is now set to page 1.
    • 0
    • International 4.0 - Sprint 2, International 4.0 - Sprint 3, International 4.0 - Sprint 4

      Spotted this during the moot. To replicate:

      1. In a course with a high number of users (say, 5 pages of them), go to the participants page
      2. Assign a new role (anything you like, so long as no one has it yet), to a handful of users (say 5)
      3. Now, from the main, unfiltered list of participants, go to page 3 or 4 using the pagination controls.
      4. Now, filter "All Roles <Your role>" and filter results
      5. Expected: I see the 5 users
        Actual: Notice that you'll see "5 participants found" but where the table normally is there is "Nothing to display" printed.

      See example from the moot site:

      We probably want to reset pagination when filtering, I suspect.

        1. example_broken.jpg
          example_broken.jpg
          41 kB
        2. MDL-69241 (2).jpg
          MDL-69241 (2).jpg
          61 kB
        3. MDL-69241.jpg
          MDL-69241.jpg
          82 kB

            michaelh Michael Hawkins
            jaked Jake Dallimore
            Shamim Rezaie Shamim Rezaie
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 20 minutes
                7h 20m

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