Commit 5c75322
committed
[BUGFIX] Preserve workspace history during publishing
This change introduces ACTION_PUBLISH history type and
migrates workspace edit history to live records
during publishing to maintain complete
audit trails.
Previously, when publishing workspace records to live, all
intermediate edit history from the workspace was lost when the
workspace record was deleted. This created gaps in the audit trail.
Changes made:
- Add ACTION_PUBLISH constant to RecordHistoryStore
- Add publishRecord() method with complete old/new diff payload
- Add migrateWorkspaceHistory() to transfer workspace history to
live record
- Update version_swap() to use new publish action instead of stage
change
- Update RecordHistory to handle ACTION_PUBLISH display as 'publish'
The complete workspace editing history is now preserved on the live
record, providing full traceability of all changes made during
workspace editing.
ACTION_PUBLISH entries now display with a blue "published" badge in
the backend history module, providing clear visual distinction from
other action types.
Resolves: #102381
Releases: main, 13.4
Change-Id: I584de5844d471ce1677c7c674b80e80f09985eb9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89938
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Benjamin Franzke <ben@bnf.dev>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Oli Bartsch <bo@cedev.de>
Reviewed-by: Oli Bartsch <bo@cedev.de>
Tested-by: Benjamin Franzke <ben@bnf.dev>1 parent 404a220 commit 5c75322
File tree
6 files changed
+76
-26
lines changed- typo3/sysext
- backend
- Classes
- Controller/ContentElement
- History
- Resources/Private
- Language
- Partials/RecordHistory
- core/Classes/DataHandling/History
- workspaces/Classes/Hook
6 files changed
+76
-26
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
407 | 410 | | |
408 | 411 | | |
409 | 412 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
Lines changed: 43 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
| |||
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 78 | | |
86 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
| |||
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 99 | | |
107 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
108 | 104 | | |
109 | 105 | | |
110 | 106 | | |
| |||
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
203 | 235 | | |
204 | 236 | | |
205 | 237 | | |
| |||
Lines changed: 25 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
424 | 433 | | |
425 | 434 | | |
426 | 435 | | |
| |||
431 | 440 | | |
432 | 441 | | |
433 | 442 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | 443 | | |
438 | 444 | | |
439 | 445 | | |
| |||
445 | 451 | | |
446 | 452 | | |
447 | 453 | | |
448 | | - | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
| |||
617 | 622 | | |
618 | 623 | | |
619 | 624 | | |
620 | | - | |
621 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
622 | 637 | | |
623 | 638 | | |
624 | 639 | | |
| |||
628 | 643 | | |
629 | 644 | | |
630 | 645 | | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | 646 | | |
636 | 647 | | |
637 | 648 | | |
| |||
0 commit comments