Content
View differences
Updated by Jens Ulferts almost 4 years ago
_The intend of this work package was downscoped. Initially, it also included UI parts and deleting work packages permanently._
**As** an OpenProject user
**I want** work packages to land in a the trash instead of before being deleted permanently
**so that**
* that** I have a chance to restore them if deleted by accident.
* their data can be accessed in the baseline feature (#26448)
**Acceptance criteria**
* When the user deletes a don't delete work package, their data (including relations, journals and attachments) don't get removed from the data base and file storage any more. Instead, this information is flagged to be deleted. packages permanently right away
* Information flagged to be deleted is not visible allow viewing work packages in the UI/API any more except: trash
* perhaps add filter and query "in trash"
* allow deleting work packages in trash for good
**Discussion**
Even when doing a baseline comparison where emptying the information can be found if filtering for a point trash we could argue that work packages should remain in time before the work package was deleted.
**Out of scope**
* A UI, database even for admins, where deleted work packages can if inaccessible. Especially important would be seen.
* Any possibility to remove work packages permanently.
* Any possibility keep the journals to restore see who deleted a work packages that have a deleted flag. package in the end.
**Additional information**
We keep getting inquiries by users who claim that work packages magically disappeared. Still having the journals around showing when a work package was deleted and by whom would help us a lot here.
Setting confidence as low as it isn't an easy thing. Maybe it would be enough to have a general auditing feature without trash to address the point above but that wouldn't really help users getting their 'missing' data back.
**Implementation notes** Notes**
* we should look into using db views based on a deleted\_at column to implement this
* this way no existing queries would need to be changed at all
**As** an OpenProject user
**I want** work packages to land in a
**so that**
*
* their data can be accessed in the baseline feature (#26448)
**Acceptance criteria**
* When the user deletes a
* Information flagged to be deleted is not visible
*
* allow deleting work packages in trash for good
**Discussion**
Even
**Out of scope**
* A UI,
* Any possibility to remove work packages permanently.
* Any possibility
**Additional information**
We keep getting inquiries by users who claim that work packages magically disappeared. Still having the journals around showing when a work package was deleted and by whom would help us a lot here.
* we should look into using db views based on a deleted\_at column to implement this
* this way no existing queries would need to be changed at all