Ensure shared groups are displayed as project member
What does this MR do and why?
This merge request fixes the display of the Project members page. On that page, groups that are shared with a parent group are currently not shown when viewing a project's members.
Add a new argument to the function which creates the member JSON object which takes in a list of group_group_links.
Partly fixes: #219230 (closed)
Screenshots or screen recordings
tg2
is a subgroup with a shared group with reporter access called tg1
:
A repository under tg2
called test
reports that there are no groups with notable permissions:
With the fix, the Groups
tab properly is displayed:
Steps to replicate
- Create groups,
tg1
andtg2
- Invite
tg1
group totg2
group, verify presence on tg2 members page - Create repository,
test
, undertg2
group, - See absence of "Groups" tab on member page of
test
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Joe Snyder