Skip to content

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

  1. log into account (ID: 1)
  2. create new group (ID: 10)
  3. create new project (ID: 20) in group with ID 10
  4. invite member (ID: 2) to group with ID 10
  5. log into account (ID: 2)
  6. create new project (ID: 21) in group with ID 10

At this point, there is:

  • Group 10/Project 20, created by user 1
  • Group 10/Project 21, created by user 2

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 user 1 lists both projects
  • https://gitlab.com/api/v4/groups/20/projects?owned=false as user 1 lists both projects
  • https://gitlab.com/api/v4/groups/20/projects?owned=true as user 2 lists both projects
  • https://gitlab.com/api/v4/groups/20/projects?owned=false as user 2 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.

Edited by FromTheStackAndBack

Merge request reports