Feature: #89143 - Allow rollback for a set of record history entries
See forge#89143
Description
To allow rollbacks for a set of record history entries, it is now possible to add a correlationId while creating the RecordHistory entry. The correlationId should be an UUID but could also be any string which is useful to identify a set of entries.
To use this feature, an additional parameter
$correlation
has been added to the following methods of
\TYPO3\
:
add
Record (string $table, int $uid, array $payload, Correlation Id $correlation Id = null) modify
Record (string $table, int $uid, array $payload, Correlation Id $correlation Id = null) delete
Record (string $table, int $uid, Correlation Id $correlation Id = null) undelete
Record (string $table, int $uid, Correlation Id $correlation Id = null) move
Record (string $table, int $uid, array $payload, Correlation Id $correlation Id = null)
To resolve all entries for a given
$correlation
a new method has been added to the
\TYPO3\
class:
\TYPO3\
CMS\ Core\ Data Handling\ History\ Record History:: find Events For Correlation (string $correlation Id): array