GitHub Importer: enable bulk import of GitHub personal gists to GitLab personal snippets in UI - BE
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
After GitHub Importer: API for bulk import of persona... (#371099 - closed) is completed we enable bulk-import of user personal gists via API, but not in UI.
Proposal
On the personal Snippets list view next to New snippet
button add new Import from GitHub
button.
On the click on Import from GitHub
button show UI element (like modal) with text information like: "You can bulk import all your personal GitHub gists to your personal GitLab snippets, that are created independently of any project and listed here on the snippets dashboard. Your public gists will become snippets with public visibility level and your secret gists will become snippets with private visibility level. Note that only gists consisting of up to 10 files can be imported and any gists bigger than 10 files will be skipped." (Here link to documentation that says why we have this limit and encourages customers to manually migrate bigger than 10 files gists over to projects.)
Under text buttons Bulk-import gists
and Cancel
After clicking on Bulk-import gists
we have authentication (same as when importing projects from GitHub).
After authentication a spinner Importing...
(or whatever GitLab recommended simple solution is). In the later iteration we could maybe have an import progress bar.
Finally imported gists are shown as snippets on the personal Snippets list.