Project

General

Profile

Actions

Bug #102381

open

Workspace History not in LIVE after publish

Added by Steffen F. about 1 year ago. Updated about 1 month ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2023-11-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The history of changes made within a workspace is correctly displayed under "History / Undo" while editing the content element.
After publishing those changes to the live version, the history inside the workspace still contains all the changes, which is expected.
However, the live version workspace does not show the history of changes made to that element after publishing to live.


Files

Cattura-1.png (103 KB) Cattura-1.png Riccardo De Contardi, 2024-03-03 11:23
cattura-5.png (104 KB) cattura-5.png Riccardo De Contardi, 2024-03-03 11:23
Cattura-3.png (147 KB) Cattura-3.png Riccardo De Contardi, 2024-03-03 11:23
Cattura-4.png (186 KB) Cattura-4.png Riccardo De Contardi, 2024-03-03 11:23
Cattura-2.png (118 KB) Cattura-2.png Riccardo De Contardi, 2024-03-03 11:23
Bildschirmfoto vom 2024-12-16 10-44-57.png (51.2 KB) Bildschirmfoto vom 2024-12-16 10-44-57.png Philipp Kitzberger, 2024-12-16 09:45
Bildschirmfoto vom 2024-12-16 10-48-14.png (42.8 KB) Bildschirmfoto vom 2024-12-16 10-48-14.png Philipp Kitzberger, 2024-12-16 09:48

Updated by Riccardo De Contardi 11 months ago

if you provide a step-by-step procedure on

1. what you did
2. wha the expected results would be

that would be of a great help.

I just performed the following test on version 13.1.0-dev (latest main)

1. Create a page "Test 102381 TEST"
2. LIVE workspace: create a CE CType: "Header Only"; Header "NUMBER ONE IN LIVE"
3. Go to the page "Test 102381 TEST" > list wiew > click on the kebab icon of the CE "NUMBER ONE IN LIVE" > History/Undo shows:

4. switch to the DRAFT workspace, the CE has the same Header
5. in DRAFT WORSKPACE Go to the page "Test 102381 TEST" > list wiew > click on the kebab icon of the CE "NUMBER ONE IN LIVE" > History/Undo shows
the same content as [Cattura-1.png]

6. Edit the element in DRAFT workspace and change the header to "NUMBER TWO IN DRAFT", save

The workspaces module shows:

7. Go to the page "Test 102381 TEST" > list wiew > click on the kebab icon of the CE "NUMBER TWO IN DRAFT" > History/Undo shows:

There is a source of confusion for the editor: now the first item on the history says that "NUMBER TWO IN DRAFT" has been inserted!
That's because I edited the headline and the column "Record Title" on this table shows just the current title and not its history...

8. workspaces module > select the element and choose on the dropdown "Choose staging action": "Publish to LIVE"; now the workspaces module shows no differences ("No records Found")

9. Go again to the page "Test 102381 TEST" > list wiew > click on the kebab icon of the CE "NUMBER TWO IN DRAFT" > History/Undo shows:

8. go to LIVE workspace

9. Go to the page "Test 102381 TEST" > list wiew
- the CE now has headline "NUMBER TWO IN DRAFT" (OK)
- list wiew > click on the kebab icon of the CE "NUMBER TWO IN DRAFT" > History/Undo shows:

Again, it is confusing... the history starts again with "NUMBER TWO IN DRAFT" (inserted)

I feel that this issue could be more vast and about what the behavior history/undo module should be; I think that it would be nice to collect some use cases sooner or later (like the one I just wrote).

Updated by Philipp Kitzberger about 1 month ago

I can confirm this issue for latest 11.5 and main.

Record history for live workspace (after publishing!):

Bildschirmfoto vom 2024-12-16 10-48-14.png

Record history for draft workspace (after publishing!):

Bildschirmfoto vom 2024-12-16 10-44-57.png

Additionally to just stage changed the following information should be rendered as well:

  • details of stage change: 0 => -20
  • comment (if provided)

Both information are available in the sys_history record:

MariaDB [db]> select * from sys_history ORDER BY uid DESC LIMIT 1\G
*************************** 1. row ***************************
           uid: 792
        tstamp: 1734342114
    actiontype: 6
      usertype: BE
        userid: 1
originaluserid: NULL
        recuid: 36
     tablename: tt_content
  history_data: {"current":0,"next":-20,"comment":"Now it's live!"}
     workspace: 1
correlation_id: 0400$6fdd460ee24b22c6f60683a1eee4989a

And yes: those sys_history entries should be visible on live workspace as well. Or maybe just the "stage change" one with an accumulated diff of all changes that happened to the record in draft workspace?

Actions

Also available in: Atom PDF