Exposing name property in imports API
What does this MR do?
Exposes the name
property in the import API to allow a user of the API to explicitly set a project name for a newly imported project. name
will be optional so the import API will still default to using the path
as the project name if name
isn't provided in the request.
related to #13698
It seems like it would be an easier experience for someone using the API to be able to just add name
to the request parameter instead of through the override_params
. This change also somewhat mimics the functionality of the projects API when creating a new project where a user is allowed to specify a name or a path when creating a project.
Screenshots
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios. -
Documentation created/updated or follow-up review issue created -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Performance and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team