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

Move 'Show all'/'Show per page' logic from participants table to dynamic table

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enter a course with at least 50 users shown (You can use MDL-70871.csv to populate the course)
      2. Navigate to the Participants page
      3. Note the number of users found at the top
        1. Confirm that the number of users matches in the "[x] participants found", "Show all [x]", and "Select all [x] users" strings
      4. Press the "Show all [x] users" link
        1. Confirm that the page did not reload
        2. Confirm that the table content updated to show all users
        3. Confirm that the "Show all [x]" text now says "Show 20 per page"
        4. Confirm that the "Select all [x] users" is no longer visible
      5. Press the "Show 20 per page" link
        1. Confirm that the page did not reload
        2. Confirm that the table content updated to show 20 users and pagination
        3. Confirm that the "Show 20 per page" text now says "Show all [x]"
        4. Confirm that the "Select all [x] users" is visible again
      6. Press the "Select all [x]" button
        1. Confirm that the page did not reload
        2. Confirm that the table content updated to show all users
        3. Confirm that the "Show all [x]" text now says "Show 20 per page"
        4. Confirm that the "Select all [x] users" is no longer visible
      7. Press the "Show 20 per page" link
      8. From the initials bar filter the users to only show a subset of them
        1. Confirm that the number of users at the top ("[x] participants founds") has changed to reflect the results
        2. Confirm that the number of users matches in the "[x] participants found", "Show all [x]", and "Select all [x] users" strings
      9. From the initials bar choose the "All" options again
      10. Toggle between the "Show 20 per page" and "Show all [x]" views
        1. Confirm that the page did not reload
        2. Confirm that the table content updated to show all users
        3. Confirm that the "Show all [x]" text switches back and forth between "Show 20 per page"
        4. Confirm that the "Select all [x] users" is visible when there are only 20 users on the page
      Show
      Enter a course with at least 50 users shown (You can use MDL-70871.csv to populate the course) Navigate to the Participants page Note the number of users found at the top Confirm that the number of users matches in the " [x]  participants found", "Show all  [x] ", and "Select all  [x]  users" strings Press the "Show all  [x]  users" link Confirm that the page did not reload Confirm that the table content updated to show all users Confirm that the "Show all  [x] " text now says "Show 20 per page" Confirm that the "Select all  [x]  users" is no longer visible Press the "Show 20 per page" link Confirm that the page did not reload Confirm that the table content updated to show 20 users and pagination Confirm that the "Show 20 per page" text now says "Show all [x] " Confirm that the "Select all  [x]  users" is visible again Press the "Select all [x] " button Confirm that the page did not reload Confirm that the table content updated to show all users Confirm that the "Show all  [x] " text now says "Show 20 per page" Confirm that the "Select all  [x]  users" is no longer visible Press the "Show 20 per page" link From the initials bar filter the users to only show a subset of them Confirm that the number of users at the top (" [x]  participants founds") has changed to reflect the results Confirm that the number of users matches in the " [x]  participants found", "Show all  [x] ", and "Select all  [x]  users" strings From the initials bar choose the "All" options again Toggle between the "Show 20 per page" and "Show all  [x] " views Confirm that the page did not reload Confirm that the table content updated to show all users Confirm that the "Show all  [x] " text switches back and forth between "Show 20 per page" Confirm that the "Select all  [x]  users" is visible when there are only 20 users on the page
    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-70871-311
    • Pull Master Branch:
      MDL-70871-master

      Description

      At this moment 'Show all X' and 'Show X per page' functionality is part of 'participants' table. It would be good to move this feature to dynamic_table, so every class that implements dynamic_table will have this functionality.

        Attachments

        1. master.png
          master.png
          24 kB
        2. MDL-70871.csv
          8 kB
        3. MDL-70871.jpg
          MDL-70871.jpg
          51 kB
        4. MDL-70871.png
          MDL-70871.png
          21 kB
        5. MDL-70871 (2).jpg
          MDL-70871 (2).jpg
          38 kB

          Issue Links

            Activity

              People

              Assignee:
              mikelmartíncorrales Mikel Martín Corrales
              Reporter:
              mikelmartíncorrales Mikel Martín Corrales
              Peer reviewer:
              Paul Holden Paul Holden
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 50 minutes
                  2d 3h 50m