Fix warning when user is unable to create project
What does this MR do and why?
A vague warning, Namespace is not valid
, was shown if a user tries to
create a project when his/her maximum number of projects has been reached.
After this change, we reuse 2 more specific errors:
-
Personal project creation is not allowed. Please contact your administrator with questions
, if the user has a limit of 0. -
Your project limit is %{limit} projects! Please contact your administrator to increase it
, if user has reached the limit but the limit is different than 0.
Screenshots or screen recordings
Before
After
If user has a limit of 0 projects
If user has a limit different than 0 projects, but it has reached the limit
How to set up and validate locally
- As an admin, go to the users table, select user X, click on the
Edit
and set theProjects limit
to zero. - As user X, try to create a project
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.
Closes #34411 (closed)
Edited by Eduardo Sanz García