Skip to content

Expose name property in imports API

Michael Leopard requested to merge expose-name-property-in-import-api into master

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.

original CE MR: gitlab-foss!32886 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

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

Merge request reports