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: Adjust migration for renderingMode.isEdit #22

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Sep 14, 2023

the migration previously adjusted the code to a now deprecated eel helper. In pr neos/neos-development-collection#4505 the userInterfaceMode is introduced as global fusionValue which made an adjustment in the rector necessary.

(node|documentNode|site).context.inBackend is now migrated to renderingMode.isEdit (node|documentNode|site).context.live is now migrated to !renderingMode.isEdit

In cases where it cannot be determined wether a node is affected by the context operation a comment is added as before.

Relates: neos/neos-development-collection#4086

@mficzel
Copy link
Member Author

mficzel commented Sep 14, 2023

Will be ready to review after neos/neos-development-collection#4505

@mficzel mficzel force-pushed the 90/adjustMigrationForUserInterfaceMode branch 3 times, most recently from b154abd to 81939fa Compare September 15, 2023 11:36
the migration previously adjusted the code to a now deprecated eel helper. In pr neos/neos-development-collection#4505 the renderingMode is introduced as global fusionValue which made an adjustment in the rector necessary.

`(node|documentNode|site).context.inBackend` is now migrated to `renderingMode.isEdit`
`(node|documentNode|site).context.live` is now migrated to `!renderingMode.isEdit`

In cases where it cannot be determined wether a node is affected by the `context` operation a comment is added as before.
@mficzel mficzel force-pushed the 90/adjustMigrationForUserInterfaceMode branch from 81939fa to 7f4b7b6 Compare September 15, 2023 11:45
@ahaeslich ahaeslich marked this pull request as ready for review September 17, 2023 14:37
@ahaeslich ahaeslich merged commit 618a7fd into main Sep 17, 2023
2 checks passed
@bwaidelich
Copy link
Member

@mficzel just checking whether only the description is wrong: we did agree to remove the isLive property right?

@mficzel
Copy link
Member Author

mficzel commented Sep 17, 2023

@bwaidelich right Description is outdated live becomes !isEdit

@mhsdesign mhsdesign deleted the 90/adjustMigrationForUserInterfaceMode branch September 21, 2023 08:29
@mhsdesign mhsdesign changed the title TASK: Adjust migration for user interface mode TASK: Adjust migration for renderingMode.isEdit Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants