Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate users appearing in Drupal Admin "people" view #15984

Closed
jilladams opened this issue Nov 2, 2023 · 3 comments · Fixed by #15988
Closed

Duplicate users appearing in Drupal Admin "people" view #15984

jilladams opened this issue Nov 2, 2023 · 3 comments · Fixed by #15988
Assignees
Labels
CMS Team CMS Product team that manages both editor exp and devops Defect Something isn't working (issue type) Needs Analysis Needs to reviewed by Product or Delivery before moving to backlog Needs refining Issue status

Comments

@jilladams
Copy link
Contributor

Describe the defect

https://dsva.slack.com/archives/CT4GZBM8F/p1698964741773909

In the People page of Drupal Admin, I'm seeing dupe rows for several people, with identical user IDs: https://prod.cms.va.gov/admin/people?user=&status=1&role=content_publisher&workbench_access_section__section=194.

I got here while looking for a Content Publisher test user with Sitewide Content section permissions. I didn't check other roles / sections to see if this happens other places. It might.

To Reproduce

Steps to reproduce the behavior:

  1. As Drupal admin, go to People
  2. Filter by Content publisher role
  3. Filter by Sitewide Content Team section
  4. See multiple duplicate rows of users, with the same User ID

AC / Expected behavior

Each user should appear one time in any list of users

Screenshots

Screenshot 2023-11-02 at 3 37 07 PM

@jilladams jilladams added Defect Something isn't working (issue type) Needs refining Issue status labels Nov 2, 2023
@jilladams jilladams changed the title <Defect summary> Duplicate users appearing in Drupal Admin "people" view Nov 2, 2023
@jilladams jilladams added CMS Team CMS Product team that manages both editor exp and devops Needs Analysis Needs to reviewed by Product or Delivery before moving to backlog labels Nov 2, 2023
@TroyA6
Copy link

TroyA6 commented Nov 2, 2023

Possibly VIEW related. Searching all Active accounts, Carl Dickerson (for example) only appears once. In the above shot, Carl appears twice...
image

@TroyA6
Copy link

TroyA6 commented Nov 3, 2023

Searching for an individual within the SITEWIDE CONTENT TEAM (such as Marci McGuire), where Sitewide Content Team is a filter, results in duplicate results -
image

While searching for an individual (such as Marci McGuire), where NO SECTION has been selected, results in a single return:
image

@ndouglas
Copy link
Contributor

ndouglas commented Nov 3, 2023

The view generates an SQL query with a LEFT JOIN on users against section associations, where there's an array of possibilities on the right. The number of rows for each user will correspond to the number of their section memberships within the array of possibilities. We just need to click the "DISTINCT" checkbox behind Query Settings, I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMS Team CMS Product team that manages both editor exp and devops Defect Something isn't working (issue type) Needs Analysis Needs to reviewed by Product or Delivery before moving to backlog Needs refining Issue status
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants