[BUGFIX] Use sys_history for workspaces stage changes + comments
Historically, a stage change (publishing or "editing => ready to publish") has been tracked - along with the comment in sys_log with the action=6 (update) and details_nr=30, where then the logs are read again for the workspaces module. Reading from sys_log is a problem as this data is very volatile (there is even a scheduler task to delete old sys_log entries older than e.g. 90 days, so we loose comments). This change now stores the information inside the sys_history table about a stage change, so the history of such an action is preserved, along with the comment. The workspaces module now reads from sys_history (via RecordHistory class) and from sys_log if there are still old comments. The reading from sys_log can then be removed at a later change. Resolves: #97158 Releases: main, 11.5 Change-Id: I055b944462f57a889681a6a236c329af29bb8d80 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73878 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/workspaces/Resources/Public/TypeScript/Backend.ts 1 addition, 1 deletion...eScript/workspaces/Resources/Public/TypeScript/Backend.ts
- typo3/sysext/core/Classes/DataHandling/History/RecordHistoryStore.php 21 additions, 2 deletions.../core/Classes/DataHandling/History/RecordHistoryStore.php
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php 52 additions, 25 deletions...ext/workspaces/Classes/Controller/Remote/RemoteServer.php
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 36 additions, 7 deletionstypo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
- typo3/sysext/workspaces/Classes/Service/HistoryService.php 18 additions, 1 deletiontypo3/sysext/workspaces/Classes/Service/HistoryService.php
- typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js 1 addition, 1 deletion.../sysext/workspaces/Resources/Public/JavaScript/Backend.js
Please register or sign in to comment