Skip to content

Increse billable users when using custom roles

Jarka Košanová requested to merge 428043-billable-users-cr into master

What does this MR do and why?

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Graphql

query {
  group(fullPath: "flightjs") {
    id
    gitlabSubscriptionsPreviewBillableUserChange(
      addUserIds: USER_IDs
      role: GUEST
      memberRoleId: ROLE_ID
    ) {
      willIncreaseOverage
      seatsInSubscription
      newBillableUserCount
    }
  }
}

For the UI:

  • this MR does not change UI, guidance for future reference
  1. Enable the following feature flags:
    • echo "Feature.enable(:overage_members_modal)" | gdk rails console
    • echo "Feature.enable(:show_overage_on_role_promotion)" | gdk rails console
    • echo 'Feature.enable(:custom_roles_in_members_page)' | gdk rails console
  2. In the member page, assign a custom role to the member. A modal with a warning should be displayed.
  3. In the member page, invite a member and assign him/her a custom role. A modal with a warning should be displayed.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #428043 (closed)

Edited by Jarka Košanová

Merge request reports

Loading