Skip to content

Conversation

@mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Nov 10, 2025

based on #5642

migrates the "YamlDimensionConfigRector" and the "YamlRoutePartHandlerRector" to Flow Yaml Source Code Migrations

Upgrade instructions

Review instructions

Changes to neos/rector.

We write warning comments to the top of the file and not inline.
We dont add inline comment notes as attempted explanation.
-> This allows us to simplify Yaml handling to parse and dump without hacky comment handling https://github.com/neos/rector/blob/efbff0d060f9cf115c7c99fdcefeb07c488a3273/src/Core/YamlProcessing/YamlWithComments.php#L7
-> in the case we figure out how to read existing comments and keep them when the file is written again we might also find a solution to inject custom comments along.

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

…igration

the YamlWithComments which allowed this is a funny beast but a lot of complexity just comments https://github.com/neos/rector/blob/efbff0d060f9cf115c7c99fdcefeb07c488a3273/src/Core/YamlProcessing/YamlWithComments.php#L7

In fusion we add warning comments instead to the beginning of the file which should also server well.

In the future we want to evaluate if we can migrate yaml by keeping the current comments - if we manage that we can also probably inject some ourselves cleanly without hacks.
Copy link
Contributor

@dlubitz dlubitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care!

@kitsunet kitsunet merged commit 12f6ed9 into feature/addFusionCoreMigrationForNeos9Update Dec 8, 2025
4 checks passed
@kitsunet kitsunet deleted the feature/addYamlFlowCoreNeos9MigrationsFromRector branch December 8, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants