[TASK] Make workspace delete a discard
When deleting a record in workspaces that has been changed in comparison to live - if it is a new, a moved or a changed workspace record, those records where subject to the 'soft-delete' strategy of the core: Soft-delete enabled tables like pages or tt_content did set deleted=1 for those records instead of fully deleting them from the table. The idea was to allow 'undelete' via recycler or history module if those records have been deleted by accident. However, the undelete workspace records functionality never worked and has never been fixed. The oldest open forge issue on this topic is 11 (!) years old. The solution is to discard those records instead of soft-deleting them. This effectively drops soft-delete for workspace records. It's done by a trivial switch in the main DataHandler delete method to re-route workspace delete operation to the recently refactored discard methods instead. This change allows us to further refactor the remaining tasks the DataHandler...
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 7 additions, 0 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Documentation/Changelog/master/Important-93121-WorkspaceRecordsAreDiscarded.rst 38 additions, 0 deletions...g/master/Important-93121-WorkspaceRecordsAreDiscarded.rst
- typo3/sysext/recycler/ext_tables.php 1 addition, 0 deletionstypo3/sysext/recycler/ext_tables.php
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Discard/DataSet/createContentWFileReferenceNDeleteFileReference.csv 0 additions, 1 deletion...taSet/createContentWFileReferenceNDeleteFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/createContentWFileReferenceNDeleteFileReference.csv 0 additions, 1 deletion...taSet/createContentWFileReferenceNDeleteFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/createContentWFileReferenceNDeleteFileReference.csv 0 additions, 1 deletion...taSet/createContentWFileReferenceNDeleteFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/createContentWFileReferenceNDeleteFileReference.csv 0 additions, 1 deletion...taSet/createContentWFileReferenceNDeleteFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageAndContentsAndDeletePageLocalization.csv 0 additions, 2 deletions...aSet/localizePageAndContentsAndDeletePageLocalization.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageAndContentsAndDeletePageLocalization.csv 0 additions, 2 deletions...aSet/localizePageAndContentsAndDeletePageLocalization.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageAndContentsAndDeletePageLocalization.csv 0 additions, 2 deletions...aSet/localizePageAndContentsAndDeletePageLocalization.csv
Please register or sign in to comment