Review main Merged

96930[TASK] Compare Extbase and core when reading and writing in workspaces

Alexander Schnitzler CR +2 V +2 Expert +1236 −0 updated 10/21/26, 05:15

Commit message

Reading records in a workspace preview and updating records in a
workspace should give the same result through Extbase as through the
core. This adds WorkspaceReadTest and WorkspaceWriteTest with pairs of
functional tests on blog_example: a ByCore test does it the way the
frontend or the backend does, a ByExtbase test does the same through a
repository and expects the same result.

The ByCore tests of the read pairs use getRecords() of the content
object renderer and the TypoScript object RECORDS, relations are read
with the record API. The write pairs use DataHandler as an admin in
workspace 1.

The pairs cover changed, new, deleted, hidden and moved records,
records found by uid, conditions on changed fields, relations,
translations and translated children, counting, ignored enable fields
in the live workspace, and updating a record with and without a
version.

Extbase differs from the core in eight of them. Those ByExtbase
tests are skipped and describe the difference:
- a record moved in the workspace is not read on its target page
- a translated child deleted in the workspace is read in its default
  language with overlays mixed
- the translation of a hidden default child is dropped
  (overlays on and mixed)
- count() counts the live rows before the workspace is applied
- ignoring all enable fields in the live workspace also returns a
  record that exists only in a workspace
- updating a record without a version writes the live row
- updating a record with a version writes the live row

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • Oliver Klee +1
    • core-ci +1 CI

Issues 2

Files 12

Review log 67

  1. Alexander Schnitzler uploaded patch set 1 10/20/26, 15:12

  2. Alexander Schnitzler wrote 10/20/26, 15:22

    Topic set to extbase
  3. core-ci voted on patch set 1 V +1 10/20/26, 15:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111865

  4. Alexander Schnitzler marked it ready for review 10/20/26, 15:42

  5. Oliver Klee voted on patch set 1 V +1 10/20/26, 16:09

  6. Benni Mack voted on patch set 1 CR +2 V +2 10/21/26, 05:15

  7. Benni Mack merged patch set 2 10/21/26, 05:15