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

Support custom user fields in cohort user member page

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
    • Testing Instructions:
      Hide
      1. Login as admin
      2. Navigate to Users > Accounts > User profile fields in site administration
      3. Create a new Text input profile field
        • Short name: food
        • Name: Food
        • Maximum length: 128
      4. Navigate to Users > Permissions > User policies in site administration
      5. Under Show user identity tick the following fields:
        • Email address
        • Food
      6. Create new user one:
        • First name: User
        • Surname: One
        • Email address: firstuser@example.com
        • Food: Carrots
      7. Create new user two:
        • First name: User
        • Surname: Two
        • Email address: second@dotcom.com
        • Food: Lettuce
      8. Navigate to Users > Accounts > Cohorts in site administration
      9. Press Add a new cohort and choose a name
      10. In the list of cohorts, press Assign icon for your new cohort
      11. Confirm custom user profile fields are present in displayed user identity in Potential users list
      12. Search Potential users for "Lettuce"
      13. Confirm User Two matches
      14. Add User Two to the cohort
      15. Confirm custom user profile fields are present in displayed user identity in Current users list
      16. Confirm you can search Current users list by custom user profile field value

      Automated test

      1. Confirm the following passes

        $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add cohorts of users"
        

      Show
      Login as admin Navigate to Users > Accounts > User profile fields in site administration Create a new Text input profile field Short name: food Name: Food Maximum length: 128 Navigate to Users > Permissions > User policies in site administration Under Show user identity tick the following fields: Email address Food Create new user one: First name: User Surname: One Email address: firstuser@example.com Food: Carrots Create new user two: First name: User Surname: Two Email address: second@dotcom.com Food: Lettuce Navigate to Users > Accounts > Cohorts in site administration Press Add a new cohort and choose a name In the list of cohorts, press Assign icon for your new cohort Confirm custom user profile fields are present in displayed user identity in Potential users list Search Potential users for "Lettuce" Confirm User Two matches Add User Two to the cohort Confirm custom user profile fields are present in displayed user identity in Current users list Confirm you can search Current users list by custom user profile field value Automated test Confirm the following passes $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add cohorts of users"

      Description

      The cohort user membership screen should support displaying/filtering of users by defined custom user profile fields, when they are part of the configured site user identity

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            pholden Paul Holden
            Peer reviewer:
            Carlos Escobedo Carlos Escobedo
            Integrator:
            Andrew Lyons Andrew Lyons
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m