Interface issues on "To GitLab" dropdown menu on import
Summary
When trying to import from Bitbucket/GitHub, the "To GitLab" dropdown menu has several issues.
Steps to reproduce
-
Go to
New Project
andImport project
-
Choose and login to Bitbucket or GitHub.
-
Check the dropdown menu under "To GitLab".
Example Project
What is the current bug behavior?
-
It displays the Bitbucket/GitHub username as an option to add as a group namespace, but there is no indication that is what is happening.
-
If the user already has a group with the same name, it will appear twice on the group list.
-
There is no indication if the namespace is unavailable, and attempts to import into that namespace gives generic errors only.
-
If the user doesn't have any groups on GitLab, the dropdown menu will be disabled and not give the option to create a group with the Bitbucket/GitHub username.
-
When importing from Bitbucket, it creates the group, but errors before project imports.
What is the expected correct behavior?
-
Indication that a new group will be created with the Bitbucket/GitHub username on import if that option is selected.
-
Should only appear once and/or groups already on GitLab should be listed separately.
-
Should show if namespace is already taken and/or should display an error with actual information.
-
Dropdown should still work.
-
No errors on import.
Relevant logs and/or screenshots
The namespace are listed twice since group exists with no info on which is which.
User without any groups has the dropdown disabled.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
GitLab Enterprise Edition 10.8.0-rc12-ee
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)