GitHub import: filter repository list by owned/collaborated/organization relation type (frontend)
Release notes
If there are a lot of repositories that you own or collaborate on on GitHub, it might be difficult to find exactly those that you want to import to GitLab with current filtering option. To make that search easier we are introducing additional filters. You will see a subset of the repositories you may import in three tabs: Owner | Collaborator | GitHub organization. Additionally in the GitHub organization tab you can further narrow down your search and choose a specific organization from a dropdown, to list only repos belonging to that organization.
Description
This is the part of Provide a better way to filter GitHub repositories by organization / collaborators / etc.. See more detailed description around whole idea there.
This particular issue is about splitting single table into 3 tabs with own list and search field. The only uniq detail is about the third tab for repos of an organization. It also has the picker for an organization to fetch the list.
We should add introductory text above the tabs:
"Import repositories that you own, that you collaborate on, or that belong
to a GitHub organization."
Changes to tabs titles (in comparison to design proposal below):
| Owner | Collaborator | GitHub organization |
We should also make sure we use camel case for GitLab
and GitHub
throughout the UI (including breadcrumbs).
Technical details
From API POV all we need is to support relation_type
parameter which should be enum: owned
/collaborated
/organization
depending on chosen tab. In case of organization tab we should also put organization_login
parameter to repositories request.
Out of scope
Showing numbers of repos in the tabs is out of scope for this issue.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.