Issue Bug Under Review

#111726Publishing an entire workspace stops silently when a batch fails

Benni Mack 12/05/26, 09:30 updated 12/05/26, 09:47

Description

“Publish entire workspace” in the workspaces module sends the changes in batches of 30 records. If a batch fails, the run stops and the module closes as if everything had been published.

Steps to reproduce

  1. In a workspace, delete a translated page and change more than 30 other records, so that the page falls into one batch and its translation into the next one (or change content on the deleted page).
  2. Choose “Publish entire workspace”.

Actual result

  • Publishing the page also publishes its translation. The next batch still contains the translation’s version, which no longer exists, so the dependency resolver throws “Element \“pages:<uid>\” does not exist” (1393960943).</uid>
  • This batch and all following ones are not published.
  • The error response contains neither “total” nor “processed”, so the module treats the run as complete and closes the modal. The error is not shown.

Expected result

  • Commands of versions that were already published or discarded together with an earlier batch are skipped.
  • If a batch fails anyway, the error is shown and the run stops. The same applies to “Discard entire workspace”.

Reviews 1

History 01

  1. Gerrit Code Review pushed patch set 1 for main to change 98354 status New Under Review 12/05/26, 09:47