[!!!][TASK] Do not handle deleted records in reference index
Keeping relation information for soft deleted records in sys_refindex is quite useless: When records are undeleted, the reference index is updated to recreate rows. Additionally, the deleted handling was incomplete, especially if a record on the 'right' side of the relation got deleted. The patch drops the deleted field from the table and prevents adding relations for soft deleted rows. Furthermore, visibility of a couple of properties and methods is changed to protected and a series of not used methods is removed. Note the hash sums change due to the removal of the deleted field. The CLI command "bin/typo3 referenceindex:update" will update hashes and will drop obsolete deleted rows. Change-Id: I58d7a904a6b4c555529b7c70e45d56ccb498f77f Resolves: #93029 Releases: master Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66968 Tested-by:Oliver Bartsch <bo@cedev.de> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php 0 additions, 4 deletions...ontroller/ContentElement/ElementInformationController.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 2 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/core/Classes/DataHandling/ReferenceIndexUpdater.php 0 additions, 1 deletion...ysext/core/Classes/DataHandling/ReferenceIndexUpdater.php
- typo3/sysext/core/Classes/Database/ReferenceIndex.php 34 additions, 165 deletionstypo3/sysext/core/Classes/Database/ReferenceIndex.php
- typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php 0 additions, 11 deletions.../sysext/core/Classes/Utility/File/ExtendedFileUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Breaking-93029-DroppedDeletedFieldFromSys_refindex.rst 72 additions, 0 deletions...er/Breaking-93029-DroppedDeletedFieldFromSys_refindex.rst
- typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/LiveDefaultElements.csv 9 additions, 9 deletions.../DataHandling/DataHandler/DataSet/LiveDefaultElements.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/DataSet/ImportDefault.csv 15 additions, 15 deletions...sts/Functional/DataHandling/FAL/DataSet/ImportDefault.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/changeContentSorting.csv 15 additions, 15 deletions.../DataHandling/FAL/Modify/DataSet/changeContentSorting.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/copyContent.csv 19 additions, 19 deletions...unctional/DataHandling/FAL/Modify/DataSet/copyContent.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/copyContentToLanguage.csv 23 additions, 23 deletions...DataHandling/FAL/Modify/DataSet/copyContentToLanguage.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/createContentWFileReference.csv 17 additions, 17 deletions...ndling/FAL/Modify/DataSet/createContentWFileReference.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/createContentWFileReferenceNDeleteFileReference.csv 15 additions, 16 deletions...taSet/createContentWFileReferenceNDeleteFileReference.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/deleteContent.csv 11 additions, 13 deletions...ctional/DataHandling/FAL/Modify/DataSet/deleteContent.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/localizeContent.csv 26 additions, 26 deletions...ional/DataHandling/FAL/Modify/DataSet/localizeContent.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContent.csv 15 additions, 15 deletions...ctional/DataHandling/FAL/Modify/DataSet/modifyContent.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNAddFileReference.csv 17 additions, 17 deletions...ing/FAL/Modify/DataSet/modifyContentNAddFileReference.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNDeleteAllFileReference.csv 11 additions, 13 deletions...L/Modify/DataSet/modifyContentNDeleteAllFileReference.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentNDeleteFileReference.csv 13 additions, 14 deletions.../FAL/Modify/DataSet/modifyContentNDeleteFileReference.csv
- typo3/sysext/core/Tests/Functional/DataHandling/FAL/Modify/DataSet/modifyContentWFileReference.csv 15 additions, 15 deletions...ndling/FAL/Modify/DataSet/modifyContentWFileReference.csv
Please register or sign in to comment