-
-
Notifications
You must be signed in to change notification settings - Fork 135
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 to "serializable commands" #3881
Conversation
$command instanceof ChangeNodeAggregateType => | ||
$dimensionSpacePoint = match ($event::class) { | ||
NodeAggregateWasMoved::class => | ||
$event->succeedingSiblingsForCoverage->toDimensionSpacePointSet()->getFirst(), |
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.
todo this is maybe cheesy? We look into the succeedingSiblingsForCoverage
???
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.
Nasty.. I created an issue for that neos/neos-development-collection#5360
NodeAggregateWithNodeWasCreated::class => | ||
$event->originDimensionSpacePoint->toDimensionSpacePoint(), | ||
NodeReferencesWereSet::class => | ||
$event->affectedSourceOriginDimensionSpacePoints->toDimensionSpacePointSet()->getFirst(), |
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.
not ideal that there is only a set here and not a originDimensionSpacePoint
like in SetSerializedNodeProperties
?
Regression from 36a5de7 as the deduplication did not work.
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.
But it seems to work so far despite the not perfect getFirst
things ;)
Related: neos/neos-development-collection#5353
Related: neos/neos-development-collection#5348