Project

General

Profile

Actions

Patch #7610

open

Patch providing issue journal rollback

Added by Brian Lindahl almost 14 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2011-02-11
Due date:
% Done:

100%

Estimated time:

Description

Has someone ever made a mistake that left a journal turd behind? Have you ever wished that you could just get rid of the journal turds?

This patch provides a rollback icon next to the number of the last journal entry. When you click on the rollback icon, the journal entry is destroyed, and the issue is restored to the state it was in before the entry was created.

The rollback action is guarded by a new permission, 'Rollback issues'.

Note that there is no validation check when rolling back an journal entry. So, for example, if 'Target Version' is changed, and the old target version is deleted, when that journal entry is rolled back, the 'Target Version' then becomes nil. Someone can probably come up with a better icon, but I just re-used the 'cancel' icon. Also, rollback cannot recover the deletion of an attachment. Rollback on an attachment deletion journal will simply remove the journal entry (and rollback any accompanying changes).

Use the rollback action carefully!


Files

rollback-1.1.0.patch (8.25 KB) rollback-1.1.0.patch Brian Lindahl, 2011-02-11 20:37
before.JPG (65.5 KB) before.JPG Brian Lindahl, 2011-02-11 20:37
after.JPG (59.5 KB) after.JPG Brian Lindahl, 2011-02-11 20:37
rollback-1.1.0.patch (8.49 KB) rollback-1.1.0.patch improved1 Brian Lindahl, 2011-02-12 01:33
rollback-2.1.0.patch (8.54 KB) rollback-2.1.0.patch Brian Lindahl, 2012-10-05 19:06
after-2.1.0.jpg (6.74 KB) after-2.1.0.jpg Brian Lindahl, 2012-10-05 19:06
after-2.1.0-fixed.jpg (17.8 KB) after-2.1.0-fixed.jpg Brian Lindahl, 2012-10-05 19:12
rollback-2.1.0-fixed.patch (8.54 KB) rollback-2.1.0-fixed.patch Brian Lindahl, 2012-10-05 19:26
rollback-2.1.0-v2.patch (9.14 KB) rollback-2.1.0-v2.patch Brian Lindahl, 2013-01-28 20:24
rollback-2.4.4.patch (10.6 KB) rollback-2.4.4.patch Brian Lindahl, 2014-04-17 20:12
rollback-2.4.4.patch (10.6 KB) rollback-2.4.4.patch Brian Lindahl, 2014-04-17 20:22
rollback-2.4.4-fixed.patch (10.7 KB) rollback-2.4.4-fixed.patch Brian Lindahl, 2014-04-17 20:25
rollback-2.6.3.patch (10.5 KB) rollback-2.6.3.patch Frederico Camara, 2015-12-17 20:10
0001-Rollback-functionality.patch (15.8 KB) 0001-Rollback-functionality.patch For Redmine 4.0 Frederico Camara, 2019-10-31 21:15
0003-Rollback-functionality.patch (16 KB) 0003-Rollback-functionality.patch Use instead of 0001-Rollback-functionality.patch Frederico Camara, 2019-11-01 16:44

Related issues

Related to Redmine - Feature #1725: Delete button on commentsClosedJean-Philippe Lang2008-07-31

Actions
Related to Redmine - Feature #1665: Ability to delete tracker commentsClosed2008-07-20

Actions
Related to Redmine - Feature #12388: diffs for editions of issue/notes entriesNew

Actions
Actions

Also available in: Atom PDF