Skip to content

Add warning to invite group modal

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/371197+

What does this MR do and why?

After we enable user limit enforcement. We should warn private groups when they attempt to invite an additional group that this could put them over the user limit.

Screenshots or screen recordings

Screenshot_2022-11-23_at_11.51.42

How to set up and validate locally

bin/rails c

ApplicationSetting.first.update(dashboard_limit_enabled: true, dashboard_limit: 5)
Feature.disable(:free_user_cap)
Feature.enable(:preview_free_user_cap)
  • Sign in. Create private group, go to members page.
  • Click Invite a group. See the warning.
  • Create public group, go to members page.
  • Click Invite a group. See there is no warning.

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 Serhii Yarynovskyi

Merge request reports

Loading