Skip to content

Unify DMS Content deletion #17

@PeterTakacs300

Description

@PeterTakacs300

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:

Screenshot 2024-12-18 at 17 10 51

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:

Screenshot 2024-12-18 at 17 14 10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions