Enable ability to restore deleted resources in Resources Tool
GENERAL
TESTING
GENERAL
TESTING
Description
When a resource is deleted from the Resources tool, the row should not be dropped. Since the file in the NAS is stored with virtually no useful metadata, the row in the table is the only entity that contains the metadata required for system admins to perform a restoration of one or more files.
Essentially what we are asking for could be termed a "soft" delete; where the row would not actually be dropped from the database. This could be accomplished a number of ways including adding a new status column to the existing table (e.g. A=active, D=deleted), or by copying the row from the primary table to a "deleted" table.
I would like to solve this generically as I am certain other institutions will want restoration capabilities.
As noted in KNL-309, this feature introduces a change to the putResourceBodyFilesystem method that seems to be the source of the problem (I experienced a build failure in 2.5.x and had to roll back the work). I think this patch and need to be reworked in light of the "entity conversion" work.
When a resource is deleted from the Resources tool, the row should not be dropped. Since the file in the NAS is stored with virtually no useful metadata, the row in the table is the only entity that contains the metadata required for system admins to perform a restoration of one or more files.
Essentially what we are asking for could be termed a "soft" delete; where the row would not actually be dropped from the database. This could be accomplished a number of ways including adding a new status column to the existing table (e.g. A=active, D=deleted), or by copying the row from the primary table to a "deleted" table.
I would like to solve this generically as I am certain other institutions will want restoration capabilities.