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

Add ability to search country field on Participants page

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as admin
      2. Create a new course with short name: CS101
      3. Use user upload tool to upload MDL-70565.csv in order to create and enrol 20 students in the course
      4. Navigate to Users > Permissions > User policies in site administration
      5. Ensure Country is not selected for Show user identity
      6. Navigate to the participants page of your new course
      7. Confirm Country filter is not available
      8. Navigate to Users > Permissions > User policies in site administration
      9. Ensure Country is selected for Show user identity
      10. Navigate to the participants page of your new course
      11. Confirm Country filter is available
      12. Select Country filter
      13. Choose Spain & Germany from the Type or select... autocomplete
      14. Press Apply filters
      15. Confirm only those users from Spain & Germany are listed
      16. Change Match: Any to Match: None
      17. Press Apply filters
      18. Confirm only those users not from Spain & Germany are listed

      Run unit tests:

      $ vendor/bin/phpunit user/tests/table/participants_search_test.php
      

      Show
      Login as admin Create a new course with short name: CS101 Use user upload tool to upload MDL-70565.csv in order to create and enrol 20 students in the course Navigate to Users > Permissions > User policies in site administration Ensure Country is not selected for Show user identity Navigate to the participants page of your new course Confirm Country filter is not available Navigate to Users > Permissions > User policies in site administration Ensure Country is selected for Show user identity Navigate to the participants page of your new course Confirm Country filter is available Select Country filter Choose Spain & Germany from the Type or select... autocomplete Press Apply filters Confirm only those users from Spain & Germany are listed Change Match: Any to Match: None Press Apply filters Confirm only those users not from Spain & Germany are listed Run unit tests: $ vendor/bin/phpunit user/tests/table/participants_search_test.php
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-70565-311
    • Pull Master Branch:

      Description

      When country is selected as a user identity field so it shows on the participants list, you can not search the country name by keyword. There doesn't appear to be any way to search the participant list by country. City does work, but country does not.

        Attachments

        1. MDL-70565.csv
          1 kB
        2. Screenshot_1.jpg
          Screenshot_1.jpg
          58 kB
        3. Screenshot_2.jpg
          Screenshot_2.jpg
          119 kB

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              heather.williams Heather Williams
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              9 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 - 1 day, 20 minutes
                  1d 20m