[TASK] No reference index for workspace delete placeholders 96/67396/8
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 10 Jan 2021 17:28:50 +0000 (18:28 +0100)
committerRichard Haeser <richard@richardhaeser.com>
Tue, 12 Jan 2021 12:25:15 +0000 (13:25 +0100)
commit84948b2c4d8740f1dcec352eb357337c23cc28f4
treef1ccb04fc0ec3e23b7d83772349358b8c3d649a8
parentfbdfea585eb85f53682ced5714105fede2dc25a3
[TASK] No reference index for workspace delete placeholders

The reference index can be seen as a 'cache' for
consuming application parts other than the
DataHandler, which does not rely on it's state but
keeps it updated.

From this point of view, workspace delete placeholders
(t3ver_state=2 records) should not have reference
index entries: The delete placeholder is just a
marker that a specific live record is slated for
deletion upon publish. It does not carry relation
information on it's own.

The patch changes reference index code to not
consider relations for workspace delete placeholder
records.

Change-Id: I0a1fd490c4133e7ce92a53ebd4413cc7b43b1d58
Resolves: #93274
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67396
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Richard Haeser <richard@richardhaeser.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Richard Haeser <richard@richardhaeser.com>
19 files changed:
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/deleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNDeleteAllFileReference.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNDeleteFileReference.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Group/Modify/DataSet/deleteContentOfRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Discard/DataSet/modifyParentNDeleteHotelChild.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Modify/DataSet/deleteParentContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Modify/DataSet/modifyParentNDeleteHotelChild.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Publish/DataSet/modifyParentNDeleteHotelChild.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/deletePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/deleteParentContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/DataSet/modifyParentNDeleteHotelChild.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Modify/DataSet/deleteCategoryOfRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/deleteLocalizedContentNDeleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Select/Modify/DataSet/deleteContentOfRelation.csv