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

Update table_sql to support dynamic initials bar

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Take a course with a number of users enrolled in it
      2. View the participants page
      3. Ensure that the page has finished loading
      4. Click each of the column sorting links in turn
        1. Confirm that the sort order was updated, and the page did not reload
        2. Confirm that you can sort correctly in both directions
      5. Use each of the initials bars to filter the users
        1. Confirm that the table updated and the page did not reload
        2. Confirm that the initials bar worked as expected (i.e. you selected A as a first iniitla, and only those users whose name begins with A were shown)
      6. Use the initials bar to show a combination with no users (i.e. First name beginning with Z and you have no users whose name begins with Z)
        1. Confirm that the "Nothing to display" message is shown
      7. Select the "All" options
        1. Confirm that the table was shown, and the page did not reload
      8. Open user/classes/participants_table.php in your preferred editor
      9. Find the out function
      10. Edit the file to et $useinitialsbar = false; at the top of the function, i.e.:

            public function out($pagesize, $useinitialsbar, $downloadhelpbutton = '') {
                $useinitialsbar = false;
                global $CFG, $OUTPUT, $PAGE;
        

      11. View the participants page again
        1. Confirm that the initials bar was not shown
      12. Attempt to sort the table again using the column sort links
        1. Confirm that the table still updates and that the page does not reload when you do so
      Show
      Take a course with a number of users enrolled in it View the participants page Ensure that the page has finished loading Click each of the column sorting links in turn Confirm that the sort order was updated, and the page did not reload Confirm that you can sort correctly in both directions Use each of the initials bars to filter the users Confirm that the table updated and the page did not reload Confirm that the initials bar worked as expected (i.e. you selected A as a first iniitla, and only those users whose name begins with A were shown) Use the initials bar to show a combination with no users (i.e. First name beginning with Z and you have no users whose name begins with Z) Confirm that the "Nothing to display" message is shown Select the "All" options Confirm that the table was shown, and the page did not reload Open user/classes/participants_table.php in your preferred editor Find the out function Edit the file to et $useinitialsbar = false; at the top of the function, i.e.: public function out($pagesize, $useinitialsbar, $downloadhelpbutton = '') { $useinitialsbar = false; global $CFG, $OUTPUT, $PAGE; View the participants page again Confirm that the initials bar was not shown Attempt to sort the table again using the column sort links Confirm that the table still updates and that the page does not reload when you do so
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-68286-master
    • Story Points:
      2
    • Sprint:
      International 3.9 - Sprint 9

      Description

      Update table_sql to support dynamic initials bar

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Simey Lameze
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

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