-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Description
At the moment there are two methods for deleting DMS Content and related records:
The deleteContent method is used e.g. in WDMSPanel, when opening the context menu with right click on the content thumbnail, and clicking on the delete menu item:
This method does not delete published files, so after deleting the DMS content like this, the files remain on the publish storage provider, and eventually fill the disc.
The deleteContentWithPhysicalDocument method is called e.g. from WDMSAttributePanel:
This method deletes the files from the storage provider too.
Proposal
The goal of this issue should be to refactor or unify the deletion methods to avoid filling storage provider disks with files that does not have DMS Content anymore, and allowing to use the delete method from automated processes too. This means to support deleting in a single transaction - as currently the deleteContentWithPhysicalDocument method runs with no transaction.
Patch: add transaction support to deleteContentWithPhysicalDocument method
We have a solution for this, I can provide a patch later for review

