-
-
Notifications
You must be signed in to change notification settings - Fork 189
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: Remove legacy fluid custom error view options and migrate to viewOptions
#2743
!!!TASK: Remove legacy fluid custom error view options and migrate to viewOptions
#2743
Conversation
Concerning: `Neos.Flow.error.exceptionHandler.renderingGroups.{exampleGroup}.options` remove the legacy way of passing * templatePathAndFilename * layoutRootPath * partialRootPath * format to a fluid view. neos#2742
ec62bcc
to
637999f
Compare
viewOptions
viewOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome… did we have a migration when this was deprecated? If not, what about adding one now?
taken from pr body: How to test:(Make sure youre on flow only - or comment out the neos.neos error view settings or also use neos/neos-development-collection#3637) throw some of these at your favorite places and marvel at the great exceptions: throw new DatabaseException();
throw new TargetNotFoundException(); // provokes a 404 @kdambekalns to be super honest - this has been missed to be deprecated for a long time so i deprecated it retroactive: #2731 what makes this ofc a super breaking change... |
Oh, well. Fine with me, it was "legacy", at least. Still, a core migration should be easy enough, as this change is for a rather specific part of the settings. I hope. 😇 |
@kdambekalns voila: #2748 |
Why a separate pr for the migration? |
@mficzel because everyone reviewed already ^^ .... hmm i could remove those also |
If you think a new review is required you can do so in this pr. As Karsten asked for changes I would like to see them in here |
related: neos#2742 automated way for: ``` options: - templatePathAndFilename: 'file' - layoutRootPath: 'path' - partialRootPath: 'path' - format: 'html' + viewOptions: + templatePathAndFilename: 'file' + layoutRootPaths: ['path'] + partialRootPaths: ['path'] ```
warn if if Neos.Flow.error.exceptionHandler.defaultRenderingOptions was used with legacy fluid view options moving these options globally to the 'viewOptions' subkey would lead to that every view (not only fluid) will get them applied and not supported options view errors will occur.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that the migration works for renderingGroups.xxx.options.
@kdambekalns can you take a second look at the migration before merging.
the neos part is merged now: |
resolves: #2742
Concerning the options of any custom error view:
removes with Flow8 the legacy way of passing these options to a fluid view:
(those were fluid only and not set via
$view->setOption($option, $value)
but set withObjectAccess::setProperty
directly on the view instance. link)!!! Breaking
one is advised to migrate those settings manually to the equivalent option in the subkey
viewOptions
or use the Flow migrationNeos.Flow-20220318174300