Add "owned" parameter to group's project listing
What does this MR do and why?
Closes #21971 (closed). API docs to list a group's projects.
How to set up and validate locally
Behaviour before
- log into account (ID:
1
) - create new group (ID:
10
) - create new project (ID:
20
) in group with ID10
- invite member (ID:
2
) to group with ID10
- log into account (ID:
2
) - create new project (ID:
21
) in group with ID10
At this point, there is:
-
Group 10/Project 20
, created by user1
-
Group 10/Project 21
, created by user2
Open the following links and observe they are all identical (change group ID in URL first):
-
https://gitlab.com/api/v4/groups/20/projects?owned=true
as user1
lists both projects -
https://gitlab.com/api/v4/groups/20/projects?owned=false
as user1
lists both projects -
https://gitlab.com/api/v4/groups/20/projects?owned=true
as user2
lists both projects -
https://gitlab.com/api/v4/groups/20/projects?owned=false
as user2
lists both projects
Behaviour after
TODO
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 FromTheStackAndBack