[BUGFIX] Discard published drafts of workspaces when not swapping
When a workspace record is published, the "old", then unused record has the values: - workspace-id: 0 - online-id: > 0 - pid: -1 This way, it is not possible to actually find out from which workspace something was published. This only happens when not swapping (exchanging data) but doing real "publishing" from a workspace. What happens is that the database is filled with obsolete "previously online" records that have no value anymore. These records are now deleted, thus, the database is kept clean. Previously only a CLI command allowed to remove them, however, they are not needed at all, so the CLI command is for existing projects that use workspaces in non-swapping mode. Resolves: #88497 Releases: master Change-Id: I9393c801de5b62484efc7ef82e389dfff6715a78 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60882 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 2 additions, 4 deletionstypo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
- typo3/sysext/workspaces/Tests/Functional/ActionHandler/ActionHandlerTest.php 0 additions, 88 deletions...aces/Tests/Functional/ActionHandler/ActionHandlerTest.php
- typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/pages.xml 0 additions, 17 deletions...kspaces/Tests/Functional/ActionHandler/Fixtures/pages.xml
- typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/sys_workspace.xml 0 additions, 18 deletions...Tests/Functional/ActionHandler/Fixtures/sys_workspace.xml
- typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/tt_content.xml 0 additions, 20 deletions...es/Tests/Functional/ActionHandler/Fixtures/tt_content.xml
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/changeContentSorting.csv 0 additions, 3 deletions...DataHandling/FAL/Publish/DataSet/changeContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/deleteContent.csv 0 additions, 3 deletions...tional/DataHandling/FAL/Publish/DataSet/deleteContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/modifyContent.csv 0 additions, 3 deletions...tional/DataHandling/FAL/Publish/DataSet/modifyContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/modifyContentNAddFileReference.csv 0 additions, 3 deletions...ng/FAL/Publish/DataSet/modifyContentNAddFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/modifyContentNDeleteAllFileReference.csv 0 additions, 3 deletions.../Publish/DataSet/modifyContentNDeleteAllFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/modifyContentNDeleteFileReference.csv 0 additions, 3 deletions...FAL/Publish/DataSet/modifyContentNDeleteFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/modifyContentWFileReference.csv 0 additions, 3 deletions...dling/FAL/Publish/DataSet/modifyContentWFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/moveContentToDifferentPage.csv 0 additions, 3 deletions...ndling/FAL/Publish/DataSet/moveContentToDifferentPage.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/DataSet/moveContentToDifferentPageNChangeSorting.csv 0 additions, 6 deletions...lish/DataSet/moveContentToDifferentPageNChangeSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/changeContentSorting.csv 0 additions, 3 deletions...aHandling/FAL/PublishAll/DataSet/changeContentSorting.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/deleteContent.csv 0 additions, 3 deletions...nal/DataHandling/FAL/PublishAll/DataSet/deleteContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/modifyContent.csv 0 additions, 3 deletions...nal/DataHandling/FAL/PublishAll/DataSet/modifyContent.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/modifyContentNAddFileReference.csv 0 additions, 3 deletions...FAL/PublishAll/DataSet/modifyContentNAddFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/modifyContentNDeleteAllFileReference.csv 0 additions, 3 deletions...blishAll/DataSet/modifyContentNDeleteAllFileReference.csv
- typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/DataSet/modifyContentNDeleteFileReference.csv 0 additions, 3 deletions.../PublishAll/DataSet/modifyContentNDeleteFileReference.csv
Please register or sign in to comment