Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!! TASK: Make kickstart:site command work with Neos 9.0 #5136

Merged
merged 6 commits into from
Jun 19, 2024

Conversation

ahaeslich
Copy link
Member

@ahaeslich ahaeslich commented Jun 11, 2024

Review instructions

Run ./flow kickstart:site My.Site and create a new site based on this package via ./flow site:create my-site My.Site My.Site:Document.Homepage.

Tested based on our Neos 9 Beta 10 Release.

Related Issue: #4016

Upgrade instructions

Custom packages implementing the SitePackageGeneratorInterface will need to be adjusted as we don't provide the siteName anymore.

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

As the `./flow site:import` command was removed we don't need to generate a `site.xml` anymore.
Relates: neos#4563
Relates: neos/neos-development-collection#4567
@ahaeslich
Copy link
Member Author

ahaeslich commented Jun 11, 2024

We briefly talked about the site kickstarter in our last weekly and we might want to do a follow up PR that e.g. includes an import as before. With this PR at least one can create a site package again.

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

Thanks for the adjustments.

I also added php stan level 8 to the site kickstarter codebase so it doesnt rot again ;)

After testing it seems to work, though we dont make use of the site name option by default anymore

./flow kickstart:site <package key> <site name>

Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

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

After testing it seems to work, though we dont make use of the site name option by default anymore

Why? I guess it was used in the generated XML, that we no longer have. If it's indeed unused (I suggest one possible place to use it (again), though), we should remove the option!

'Neos.Neos:Site': true
ui:
icon: globe
label: '{packageKey} Homepage'
Copy link
Member

Choose a reason for hiding this comment

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

This could be the (human-readable) site name, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would rather remove the option tbh.

@ahaeslich ahaeslich changed the title BUGFIX: Make kickstart:site command work with Neos 9.0 !!! TASK: Make kickstart:site command work with Neos 9.0 Jun 14, 2024
mhsdesign

This comment was marked as spam.

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

Lol i didnt use your branch when i checked to request changes. I see everything is perfect then ❤️

@mhsdesign mhsdesign merged commit ec698da into neos:9.0 Jun 19, 2024
11 checks passed
@ahaeslich ahaeslich deleted the bugfix/kickstart-site-package branch June 28, 2024 12:42
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