Review main Ready for review

98354[BUGFIX] Skip versions published with an earlier batch in workspaces

Benni Mack CR +1 V +1 Hard +257 −21 updated 12/05/26, 21:44

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

  1. 98189[BUGFIX] Publish moves out of a deleted page along with its deletion Based on this change Benni Mack → main, 14.3 Hard +939 −59 CR 0 V 0 Merge conflict
  2. 89027[BUGFIX] Keep records moved away from pages deleted in workspaces Based on this change Benni Mack → main, 14.3 Hard +336 −29 CR 0 V 0 Merge conflict
  3. 98354 [BUGFIX] Skip versions published with an earlier batch in workspaces This change

Merge conflicts 5

Issues 1

Files 7

Review log 23

  1. Benni Mack uploaded patch set 1 12/05/26, 09:47

  2. 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

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 12/05/26, 21:44