-
- Downloads
There was an error fetching the commit references. Please try again later.
Removes duplicated members from api/projects/:id/members/all
When using the members/all api the same user was returned multiple times when he was a member of the project/group and also of one of the ancestor groups. Now the member is returned only once giving priority to the membership on the project and maintaining the same behaviour of the members UI.
Showing
- app/finders/members_finder.rb 32 additions, 11 deletionsapp/finders/members_finder.rb
- app/models/member.rb 2 additions, 0 deletionsapp/models/member.rb
- changelogs/unreleased/51854-api-to-get-all-project-group-members-returns-duplicates.yml 5 additions, 0 deletions...i-to-get-all-project-group-members-returns-duplicates.yml
- doc/api/members.md 3 additions, 1 deletiondoc/api/members.md
- lib/api/helpers/members_helpers.rb 2 additions, 17 deletionslib/api/helpers/members_helpers.rb
- spec/finders/members_finder_spec.rb 37 additions, 7 deletionsspec/finders/members_finder_spec.rb
- spec/requests/api/members_spec.rb 13 additions, 0 deletionsspec/requests/api/members_spec.rb
Please register or sign in to comment