Group Member CSV Export Lists Duplicate Members
Summary
A customer is reporting that when using the Group Member Export feature, the CSV lists some users as duplicates. For example:
| user.name1 | User One | 2021-07-07 15:33:29 | | Owner | Inherited member |
|------------|----------|---------------------|--|----------|------------------|
| user.name1 | User One | 2021-07-07 17:49:33 | | Reporter | Direct member |
| user.name2 | User Two | 2019-10-14 13:49:14 | | Owner | Inherited member |
|--------------|----------|---------------------|--|-----------|------------------|
| user.name2 | User Two | 2017-05-17 16:11:38 | | Owner | Inherited member |
The CSV export should list users based on their Max Role in any group/subgroup whether this is inherited or direct. Why are some users listed once based on their Max Role while others are listed multiple times with various Max Roles?
NOTE: This does not seem to affect all users in the CSV export. Some users have direct membership to multiple groups/projects but are only listed once rather than multiple times.
Steps to reproduce
- Navigate to the Group Members Page
- Click Export as CSV
- Check email for CSV
- Open CSV and filter for duplicates
Example Project
I have been unable to recreate the duplicate users issue with a test group. The customer granted us permission to export the Group Member CSV for their affected group. Please see the Zendesk Ticket (Internal) for details.
What is the current bug behavior?
Group Member CSV Exports list some members as duplicates
What is the expected correct behavior?
Members should only be listed once so that the CSV list accurately matches the number of members listed in the UI.
Output of checks
This bug happens on GitLab.com