Create project: Add personal options validation
What does this MR do and why?
Add personal options validation to the new project creation form:
- Hide Import and CI/CD options when these features are disabled
- Hide options and show an error message when user can't create personal projects or reached the limit
- If user can't create a personal project, hide this option from a destination select
new_project_creation_form feature flag. They won't be available to users until all the work is done. See the plan here #514700 (closed)
Screenshots or screen recordings
| User has no restrictions | User has restrictions |
|---|---|
![]() |
![]() |
![]() |
|
![]() |
|
![]() |
![]() |
How to set up and validate locally
-
In rails console enable the experiment fully
Feature.enable(:new_project_creation_form) -
You can also try to go to any group you own
-
Click the [+] button on top of the sidebar
-
Click In this group > New project/repository
How to disable Import and CI/CD:
- Go to http://gdk.test:3000/admin/application_settings/general#js-import-export-settings
- Find Import sources
- Uncheck all the sources listed there
How to set a limit of projects
- Go to http://gdk.test:3000/admin/users/root/edit
- Find Projects limit
- Set
0to disable project creation - Set
1to reach a limit of projects
Links
Project creation plans: #514700 (closed)
Milestone planning issue: #499697 (closed)





