Delete imported projects after user canceled import
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
This issue is the second iteration of Cancel project imports
Currently, when a user imports projects into GitLab there is no way for them to cancel an import in-progress. The below scenario illustrates the problem:
Import all repositories
- User authenticates their GitHub account.
🙂 - Selects "Import 234 repositories" from the
Import repositories from GitHub
page which initiates the import.🙂 - User realizes they had made a mistake and needs to cancel their import and correct the error.
😕 - User finds no way to cancel the import.
😡 - User must go into GitLab project settings for each imported project and delete them manually.
😩
This process is quite cumbersome and could cause a lot of frustration for the users.
In this issue, we enabled Cancel
option, but the data that already imported will be retained. In this issue we will enable Delete
of the imported data.
Proposal
Implement Cancel and Delete
button.
- User can start the cancel process when an import is:
- Pending
- In progress
- User can't cancel after an import is complete.
- An import that is cancelled can not be resumed*
- The cancel process has two outcomes:
- Cancel and retain — Importing stops, anything that has been imported stays in the project (implemented here)
- Cancel and delete — Importing stops, anything that has been imported is deleted
- Users can choose the outcome —
cancel and retain
orcancel and delete
.
Example user flow |
---|
![]() |
Source |
The scope of this issue is for GitHub importer.
Edited by 🤖 GitLab Bot 🤖