Skip to content

Expose a `removable` attribute for BillableMembers

Vijay Hawoldar requested to merge vij-add-removable-to-billable-member into master

What does this MR do?

In order for the frontend to clarify the membership type of a billable member and the actions that can be performed on them (e.g. removing), firstly we added a new attribute called membership_type in !60600 (merged).

Now in this MR we expose another attribute, removable, which uses the membership_type to establish if a billable member can be removed from the given group.

Removal of a billable member for a group is only possible for non-shared members (group and project members).

Shared members cannot be indivually removed - either the shared group needs to be removed entirely, or the shared group they actually belong to needs to remove that member.

Refs #325412 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Vijay Hawoldar

Merge request reports