From 883aa3b5cca1645f2aae353f4f180f77c5693c7e Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 17 May 2022 20:45:41 +0000 Subject: Background job for project deletion (#36691). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to the deletion of dependent objects (issues etc), project deletion may take a long time. This patch 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 that 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. Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21591 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/_list.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/projects') diff --git a/app/views/projects/_list.html.erb b/app/views/projects/_list.html.erb index 39978ee64..4c592247c 100644 --- a/app/views/projects/_list.html.erb +++ b/app/views/projects/_list.html.erb @@ -40,13 +40,13 @@ <% end %> "> - <% if @admin_list %> + <% if @admin_list && !entry.scheduled_for_deletion? %> <%= check_box_tag("ids[]", entry.id, false, :id => nil) %> <% end %> <% @query.inline_columns.each do |column| %> <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %> <% end %> - <% if @admin_list %> + <% if @admin_list && !entry.scheduled_for_deletion? %> <%= link_to_context_menu %> <% end %> -- cgit v1.2.3