Skip to content

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

image

After

image If user has a limit of 0 projects

image If user has a limit different than 0 projects, but it has reached the limit

How to set up and validate locally

  1. As an admin, go to the users table, select user X, click on the Edit and set the Projects limit to zero.
  2. 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.

Closes #34411 (closed)

Edited by Eduardo Sanz García

Merge request reports

Loading