Review 13.4 Merged

88123[TASK] Streamline ext:workspaces DataHandlerHook and logging

Christian Kuhn CR +2 V +2 Hard +98 −196 updated 02/09/25, 19:19

Commit message

* Use DI for DB connection instead of using GU::makeInstance()
  all over the place
* Inline method emitUpdateTopbarSignal() to consumers
* Streamline some comments
* Avoid obsolete casts
* Use early return in version_swap on SQL error
* Rename "versionized" to "versioned" in a couple of variables
* Overall more dense code

Additionally, version_swap() removes two log cases:
* `if ($propArr['t3ver_oid'])` is never true since `t3ver_oid`
  is not part of the DH->getRecordPropertiesFromRow() array
  result set
* It does not make sense to add a log entry and history for
  $curVersion / $swapWith (the live record being taken offline)
  since that record is deleted / discarded afterwards which
  triggers an own log row about its deletion. This detail is a
  sane conclusion of #92206.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 2

Files 1

Review log 34

  1. Christian Kuhn uploaded patch set 1 02/09/25, 19:02

  2. core-ci voted on patch set 1 V +1 02/09/25, 19:08 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/73858

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 02/09/25, 19:19

  4. Christian Kuhn merged patch set 2 02/09/25, 19:19