[go: up one dir, main page]

Skip to content

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

  1. User authenticates their GitHub account. 🙂
  2. Selects "Import 234 repositories" from the Import repositories from GitHub page which initiates the import. 🙂
  3. User realizes they had made a mistake and needs to cancel their import and correct the error. 😕
  4. User finds no way to cancel the import. 😡
  5. 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 or cancel and delete.
Example user flow
image
Source

The scope of this issue is for GitHub importer.

Edited by 🤖 GitLab Bot 🤖