Skip to content

Allow user to import project using a different project name

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

Initial problem

When a user tries to import a project using a Path that has already been taken, the UI shows an unhelpful error and a 422 error is seen on the console.

Screen_Shot_2018-06-05_at_4.35.31_PM

Processing by Import::GithubController#create as JSON
  Parameters: {"repo_id"=>"16008924", "target_namespace"=>"tauriedavis", "new_name"=>"portfolio", "ci_cd_only"=>false, "github"=>{"repo_id"=>"16008924", "target_namespace"=>"tauriedavis", "new_name"=>"portfolio", "ci_cd_only"=>fals
e}}
Unable to save project. Error: Name has already been taken, Path has already been taken
Completed 422 Unprocessable Entity in 323ms (Views: 0.3ms | ActiveRecord: 43.3ms | Elasticsearch: 0.0ms)

Initial fix

We updated the error message to give the user more information in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19467.

img

Proposal

We should improve the UX further by providing the user with a way to import the project with a new path name.

Edited by 🤖 GitLab Bot 🤖