Review 12.4 Merged

79990[BUGFIX] Do not consider done `UpgradeWizard` as not found

Nikita Hovratov CR +2 V +2 Easy +4 −1 updated 07/15/23, 20:30

Commit message

Existing upgrade wizards marked as done should not be considered as
not existing and therefore not returning a error exit code in the
cli command. This was the case before TYPO3 v12.2, changing that
behavior with #99586 to support register upgrade wizard based on
a PHP attribute.

Postulating that this was a unintended side-effect for single upgrade
execution, this change adds a early check if the upgrade wizards is
marked as done to keep a non-error exit code and outputting a use-full
note to the console.

Note: Executing all possible upgrade-wizards are not related to this
      issue, and therefore do not need any adjustment. But this is
      the reason for keeping the `isWizardDone()` check in method
      `getWizard()`.

This can be tested with:

> bin/typo3 upgrade:run migrateSiteSettings ; echo "$?"

for TYPO3 main or

> bin/typo3 upgrade:run svgFilesSanitization ; echo "$?"

for TYPO3 12.4.x (and 11.5.x as verification)

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1