Skip to content

Exclude assigned user when checking seats available

Mohamed Hamda requested to merge 451174-exclude-assigned-users into master

What does this MR do and why?

In this MR, we:

  • Exclude assigned user when checking seats available
  • Assigned user is excluded when calculating seats

Mutation Example:

mutation {
  userAddOnAssignmentBulkCreate(
    input: {userIds: ["gid://gitlab/User/13", "gid://gitlab/User/19", "gid://gitlab/User/20"], addOnPurchaseId: "gid://gitlab/GitlabSubscriptions::AddOnPurchase/6"}
  ) {
    addOnPurchase {
      id
    }
    users {
      edges {
        node {
          id
          name
          username
        }
      }
    }
    errors
  }
}

Response

Screenshot_2024-03-21_at_15.17.30

Related to #451174

Edited by Mohamed Hamda

Merge request reports