Review main Work in progress

97470[FEATURE] Keep rows without a date in table garbage collection

Benni Mack CR 0 V 0 Normal +160 −20 updated 11/09/26, 20:43

Commit message

The table garbage collection task removes all rows of a table
configured with "dateField" whose date is older than the expiry
period. A value of 0 is older than any period, so rows without a
date, for example records that have never been hit, are always
removed.

Tables can now set the option "deleteZeroValues" to false to keep
those rows. The option defaults to true, which keeps the previous
behaviour. Tables configured with "expireField" are not affected,
as a value of 0 already means that a row never expires there.

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/70/97470/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/70/97470/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 6

Review log 12

  1. Benni Mack uploaded patch set 1 11/09/26, 20:27

  2. core-ci voted on patch set 1 V +1 11/09/26, 20:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113777