Project

General

Profile

Actions

Feature #36691

closed

Background job and dedicated status for project deletion

Added by Jens Krämer almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Administration
Target version:
Resolution:
Fixed

Description

Due to the deletion of dependent objects (issues etc) and child projects,
project deletion may take a long time.

This patch, which was extracted from [Planio](https://plan.io/redmine-hosting),
moves the actual project deletion into an ActiveJob job. It also introduces a
new project status (SCHEDULED_FOR_DELETION) that is used to effectively hide
the project that is about to be deleted (and any potential descendant projects)
from the system immediately.

A security notification is sent out to the user who deleted the project,
informing about success / failure.

The projects list is extended to be able to filter for the new status,
so in case of a failure, the project can still be accessed for
examination.


Files


Related issues

Related to Redmine - Patch #31076: Issues CSV / PDF export via ActiveJobNewActions
Related to Redmine - Feature #33422: Re-implement admin project list using ProjectQuery systemClosedMarius BĂLTEANUActions
Related to Redmine - Patch #37210: Make "Project" label translatable in app/views/projects/bulk_destroy.html.erbClosedGo MAEDAActions
Related to Redmine - Patch #43214: Optimize Project.allowed_to_condition by replacing `projects.status <> ...` with `projects.status IN (...)`ClosedGo MAEDAActions
Actions

Also available in: Atom PDF