diff options
author | Stan Hu <stanhu@gmail.com> | 2018-08-23 15:21:06 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-08-24 10:29:14 -0700 |
commit | f2005125dfe7810de910b61dee8d7a9203a6ca6e (patch) | |
tree | 292dbe52167f294d75e7637e60c521c02a0cdb4d /qa | |
parent | 842377ab3c5b80a3758ad8c36dc3358bd265bc10 (diff) | |
download | gitlab-ce-f2005125dfe7810de910b61dee8d7a9203a6ca6e.tar.gz |
Use slugs for default project path and sanitize names before import
Users importing from Bitbucket Cloud, Bitbucket Server, or GitHub
often complained about getting failed imports due to 422 errors.
This change ensures that project names are imported with names that
are guaranteed to pass the regular expression validation.
Part of #50021
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/import/github.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/project/import/github.rb b/qa/qa/page/project/import/github.rb index 36567927194..1a410a0f8a5 100644 --- a/qa/qa/page/project/import/github.rb +++ b/qa/qa/page/project/import/github.rb @@ -14,7 +14,7 @@ module QA element :project_import_row, 'data: { qa: { repo_path: repo.full_name } }' element :project_namespace_select element :project_namespace_field, 'select_tag :namespace_id' - element :project_path_field, 'text_field_tag :path, repo.name' + element :project_path_field, 'text_field_tag :path, sanitize_project_name(repo.name)' element :import_button, "_('Import')" end |