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

Browse list of users Active filter issue

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      As admin:

      1. Create multiple cohorts with both empty and non empty cohort IDs.
      2. Assign users to these cohorts, but ensure there is at least one user who is not assigned to any cohort.
      3. Open the users list and filter users by cohort ID using multiple scenarios and make sure it works. Ensure you test the filters "doesn't contain" and "is empty".
      Show
      As admin: Create multiple cohorts with both empty and non empty cohort IDs. Assign users to these cohorts, but ensure there is at least one user who is not assigned to any cohort. Open the users list and filter users by cohort ID using multiple scenarios and make sure it works. Ensure you test the filters "doesn't contain" and "is empty".
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      wip-MDL-34914-master

      Description

      I'm using the advanced section of the filtering on the browse list of users page and bulk user action page.

      I'm trying to find all users that are not within a specified Cohort. So I choose under Cohort ID filter option "doesn't contain" and enter the Cohort ID I'm not looking for, for instance "allstudents".

      I have a total of 4500 users and only 4200 are in the "allstudents" Cohort. So I would expect to get the other 300 as a result. I get nothing unless I have another cohort that has at least one user in it. Otherwise I won't get any users.

      The way I'm thinking it should work is that it should return any user not within the "allstudents" Cohort whether they are in another Cohort or not.

      There is also another thing that happens is that if a user is within multiple Cohorts ("allstudents" and "allusers") and I don't want any users that are within the "allstudents" but is contained in an "allusers" Cohort that user is returned. Even though I don't want any users within the "allstudents" Cohort it is seeing that they are in the "allusers" Cohort and returning them.

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            henestofelj James Henestofel
            Peer reviewer:
            Mark Nelson Mark Nelson
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Michael de Raadt Michael de Raadt
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Jul/14