Allow Gitlab API for leaving a project

Created on 4 February 2024, 10 months ago
Updated 23 February 2024, 9 months ago

Problem/Motivation

Since we do not use standard Merge Request workflow with personal branches the number of projects a user is a member of can become excessive quickly.

In order to keep a productive workspace the the ability to leave resolved issue forks exists.

The APi block prevents using API clients or scripting to automate the routine action of leaving a project after the issue is Closed-fixed.

https://docs.gitlab.com/ee/api/members.html#remove-a-member-from-a-group...

Allowing this API will not allow users to remove other users from projects unless they already hold the permissions to do so.
On issue forks all accounts are given Developer permissions which do not have the ability to remove other users.

Steps to reproduce

Use an API client (GitBlur) to view members of an issue fork that you are a member of. Select Leave on self and observe a 401 error.

Proposed resolution

Allow Authenticated DELETE requests to projects members
DELETE https://git.drupalcode.org/api/v4/projects/
/members/ HTTP/2.0

Remaining tasks

User interface changes

None

API changes

Allow GitlabApi access

Data model changes

None

✨ Feature request
Status

Fixed

Component

GitLab

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024