98354[BUGFIX] Skip versions published with an earlier batch in workspaces
Commit message
"Publish entire workspace" stores all commands in the backend user session and processes them in batches of 30 per request. Publishing a record can publish or discard other versions as well, for instance the translation of a deleted page or changed content on a deleted page. When the command of such a version was part of a later batch, the dependency resolution threw an exception for the missing version, the batch and all following ones were not processed. On any error the response reported zero records in total, so the module considered the run finished, closed the modal and never showed the error, while the session still held the unprocessed commands. Commands of versions that no longer exist are now skipped before a batch runs and counted as processed, for publish and discard alike. If a batch fails, the response keeps the total and processed counts, the mass action state in the session is reset, and the module shows the error, stops sending requests and refreshes the list.
Show more Show less
Resolves: #111726 Releases: main, 14.3 Change-Id: I08241d537c78734b5cc4a02cd67d3eb5b981b805
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/54/98354/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/54/98354/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR +1 Needs a vote
- Simon Schaufelberger +1
-
Verified V +1 Needs a vote
- Simon Schaufelberger +1
- core-ci +1 CI
Relation chain 3
- 98189[BUGFIX] Publish moves out of a deleted page along with its deletion
- 89027[BUGFIX] Keep records moved away from pages deleted in workspaces
-
98354 [BUGFIX] Skip versions published with an earlier batch in workspaces This change
Merge conflicts 5
Issues 1
Files 7
- Build/Sources/TypeScript/workspaces/backend.ts+8 −5
- typo3/sysext/workspaces/Classes/Controller/WorkspacesAjaxController.php+59 −12
- typo3/sysext/workspaces/Resources/Public/JavaScript/backend.js+1 −1
- typo3/sysext/workspaces/Tests/Functional/Controller/Fixtures/mass_action_changed_content_on_deleted_page.csvnew+8 −0
- typo3/sysext/workspaces/Tests/Functional/Controller/Fixtures/mass_action_changed_pages.csvnew+62 −0
- typo3/sysext/workspaces/Tests/Functional/Controller/Fixtures/mass_action_deleted_translated_page.csvnew+6 −0
- typo3/sysext/workspaces/Tests/Functional/Controller/WorkspacesAjaxControllerTest.php+113 −3
Review log 23
-
Benni Mack uploaded patch set 1 12/05/26, 09:47
-
core-ci voted on patch set 1 V +1 12/05/26, 09:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116427
-
Simon Schaufelberger voted on patch set 1 CR +1 V +1 12/05/26, 21:44