Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 36,069
    • Issues 36,069
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,299
    • Merge Requests 1,299
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #220382

Closed
Open
Created Jun 04, 2020 by Dan Jensen@djensenDeveloper

Project soft delete should only occur if soft delete is enabled

Problem to solve

GitLab 12.6 introduced soft deletion of projects for Silver/Premium and higher tiers. In those tiers the "remove project" flow only schedules a project for deletion after a period of time (the default is 7 days). Currently in those tiers it is not possible to delete projects immediately. This has resulted in a some complaints (in order of oldest to newest):

  • Immediately remove a soft-deleted project
  • "Is there any way to avoid this entirely in the case that confidential info has been posted on the repo?"
  • "it was quite frustrating to have the "deleted" items persisting for 7 days" (GitLab reporter)
  • "I discovered [delete] is not readily possible on Gitlab while the fork is pending deletion."
  • "I do not see an easy way of forcing the deletion before the pending date."
  • "This has an impact for all users of Terraform and Pulumi"
  • Removing a fork should not take one week
  • API project DELETE backwards incompatible change

Proposal

  1. There should be a group-level configuration option to "Enable delayed project removal", with explanation text: "Projects will be permanently deleted after a 7-day waiting period. This period can be customized by an admin in instance settings."
  2. Projects should not be soft deleted on removal unless that option is enabled.
  3. The project removal confirmation modal should say: ""This group has enabled a project deletion delay. Your project will be recoverable for X days."
  4. The "Removed projects" tab should only appear if that option is enabled.
  5. The API documentation to remove a project should note there will be a delay if that option is enabled.
  6. Projects under user namespaces to be deleted immediately

Screen_Shot_2020-06-04_at_12.06.57_PM

Permissions and security

No change to existing permissions. Only Group owners are able to change group configuration, and only Project owners are able to delete projects.

What does success look like?

Project soft delete only occurs when the configuration option has been enabled at the group level.

Edited Jul 08, 2020 by Aishwarya Subramanian
Assignee
Assign to
13.2
Milestone
13.2 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab#220382