Update warning and error messages when project limit is hit
What does this MR do and why?
Related to #367020 (closed)
In the admin area you can set a project limit. See https://docs.gitlab.com/ee/administration/settings/account_and_limit_settings.html#default-projects-limit for more information.
When the project limit is reached set we display a warning and an error message if you try and to create a new personal project. Those warnings and errors were a bit confusing so this MR updates the copy to try and be more clear.
Screenshots or screen recordings
Warning on all projects dashboard
warning is no longer shown on this page
Before | After |
---|---|
Warning on personal projects dashboard
Before | After |
---|---|
Error when limit is set > 0
Before | After |
---|---|
Error when limit is 0
Before | After |
---|---|
How to set up and validate locally
- Sign in as an admin
- Find a user in
/admin/users
that has a lot of projects. ClickEdit
. - Change
Projects limit
to1
and save. - Click
Impersonate
in the upper right corner - Navigate to
/?personal=true&sort=name_asc
. - If you don't have any personal projects you won't see the warning. Create a personal project to see the warning.
- Go to
/projects/new#blank_project
. - Choose your username from the
Choose a group or namespace
dropdown - Fill in
Project name
field and clickCreate project
. You should see an error message.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman