-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
BUGFIX: Serialised node fully qualified for fusion uncached mode #4734
BUGFIX: Serialised node fully qualified for fusion uncached mode #4734
Conversation
not a fan doing this specifically for fusion/the property mapper, why don't we replace the serialization format here |
Or yes, we introduce NodeIdentity and drop the serialization format from NodeAddress, that would be even neater -> #4564 |
8d76984
to
ae02d83
Compare
Yes a |
ae02d83
to
07ffe14
Compare
Solved it by removing the hardcoded property mapper from the fusion cache and using symfony's interfaces |
5bba6e8
to
6a99952
Compare
Wait what do we gain here? Another object? Like apart from abstracting the propertyMapper away here nothing has changed? |
Oh this isnt just a new object. By adding a layer of abstraction Fusion standalone will use the property mapper yes, but Neos.Neos implements an own serialiser so that it can serialise nodes without bothering the propertymapper.
which will already now confusion for example about the nodes format when serialised ... Lets to it rather explicit this time please :D |
23b69c9
to
fce8851
Compare
I think that is a core expectation though, countless projects will have controllers expecting a node and I don#t see why for the time being as the propertyMapper IS still the suggested and only way to do controller marshalling build into Flow, this should work |
Huh i didnt know we werent on the same side :D I thought we discussed this already someplace but couldnt find it so i opened a separate issue: #4873 Under that aspect, i will revert the removal of the property mappers with this pr. |
We discussed that we dislike property mapping directly to a node via the flow property mapper. For fusion we have the usecase of unserialising the node |
fce8851
to
2a2d068
Compare
This is now ready for review. Once we have a central NodeIdentity i will adjust the code to use that serialiser from the For example i decided against using a sympfony serializer wrapper for the normalizers, as its not configurable via objects yaml. |
997f42d
to
ebfbbcc
Compare
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.
Fine by reading with my limited understanding of this specific topic.
…Context to be in one place
… property mapping
as this was the old Neos 8.3 behaviour when the property mapper was still used for nodes
ebfbbcc
to
c5b2493
Compare
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.
Seems fine I guess, bit weird that the serializer creates an array but I guess that's legacy from how it was before
actually thats new :D As the content cache doesnt care as long as its json serialise able i decided for array. Thats how the symfony denormaliser thing is allowed to work. |
Resolves: #4732
discussion should happen in #4732 and once we agree on a solution i will update this pr description
Upgrade instructions
Review instructions
test that this works:
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions