Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2106

Membership counts inaccurate when member has more than one membership

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 2.4.0.patch
    • API, UI
    • None

    Description

      The visualization count of group members is calling MembershipFinder.findMembershipsMembers() to get a count of members. This counts memberships, not members, so that if a subject is a member via two different paths, it will be counted twice.

       

      The member count on the group UI page is only accurate because it is looping through all the memberships and collating their associated subjects into a different set and counting the result. That solution is probably too resource-intensive to do for a large number of groups.

       

      Using MembershipFinder.findMembers() is also inaccurate. The returned Set<Member>'s does return the unique set. But if query option retrieveCount is set, the count includes the duplicates.

       

      Attachments

        Issue Links

          Activity

            People

              chad.redman@at.internet2.edu Chad Redman (unc.edu)
              chad.redman@at.internet2.edu Chad Redman (unc.edu)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: