Project

General

Profile

Actions

Feature #102184

open

Add PSR-14 event to adjust cleanup:flexforms

Added by Garvin Hicking 7 months ago. Updated 15 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
Start date:
2023-10-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
flexform flexforms cleanup event
Complexity:
Sprint Focus:

Description

Before #102181 the cleanup:flexforms CLI task had the ability to specify depth and a pid to restrict operations to a specific range of the pagetree.

Due to conceptional changes and optimizations, this has been dropped.

To allow integrators/developers the ability to prevent updates on specific flexform contents, a PSR-14 event should be introduced. That event should contain the cleaned-up XML, the record array, and a boolean flag that can be set to "false" so that the update action can be prevented.

Alternatively, the event could also adjust the cleaned XML. The old XML can be accessed through the ->getRecord()[$fieldName] method to perform comparisons. Also ->getRecord() can be checked to see if specific PID/CType or other conditions are met.

Preventing updates could be required by integrators/developers, because parts of the page tree might be allowed to contain outdate FlexForm values (i.e. due to CTypes getting switched around, or external updates).


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Task #102181: Drastically speed up `bin/typo3 cleanup:flexforms`Closed2023-10-16

Actions
Actions #1

Updated by Garvin Hicking 7 months ago

  • Follows Task #102181: Drastically speed up `bin/typo3 cleanup:flexforms` added
Actions #2

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #3

Updated by Gerrit Code Review 7 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #4

Updated by Gerrit Code Review 7 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #5

Updated by Gerrit Code Review 7 months ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #6

Updated by Gerrit Code Review 7 months ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #7

Updated by Gerrit Code Review 7 months ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81441

Actions #8

Updated by Benni Mack 3 months ago

  • Target version changed from 13.0 to 13.1
Actions #9

Updated by Benni Mack 15 days ago

  • Target version changed from 13.1 to 13.2
Actions

Also available in: Atom PDF