-
-
Notifications
You must be signed in to change notification settings - Fork 225
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: Recognize removed-state while reducing #5457
BUGFIX: Recognize removed-state while reducing #5457
Conversation
I was unable to push to @Nikdro branch; therefore I created a new PR with the changes from Niklas. Yesterday I stumbled over a similar issue and after checking the code in the Neos-UI @kitsunet led me to the For some reason, the Behavoir before this change: Move-node-into-same-parent-with-bug.-.01.mp4Behavoir after this change: Move-node-into-same-parent-with-fix.1.-.01.mp4The only thing I could find was an issue when you move the node into the parent, publish it, and then move the node into the same parent again, without reloading the page. This does not happen when you reload the page after publishing. Move-node-into-same-parent-with-fix-exception-before-reload.1.-.01.mp4I will rebase this change to Neos 8.3, and then we can hopefully continue with the discussion here. Seems that the only concern was the missing test :) With Neos 9.0, this should be different anyways. |
Tested the behavior in Neos 9.0 and there we don’t have the issue. Even the last issue with the exception is not happening as the UI reloads the needed components after publishing. 🥳 |
i cant say much to the implementation but only see there are no tests 🙈 shouldnt we prefer to prevent moving into the same via ui js code or even just via the move abstract change? |
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.
This makes sense
Please read Issue #3651, to get the problem.
By adding the removed-state as 3rd priority while reducing NodeData results, we should always get the not-removed NodeData, if there are 2 (because of Node-move).
I tested this fix on our projects, and it worked. I can't find something breaking. But since this is deep inside NodeData, I've no idea, if we could get unexpected side-effects on it. Thanks to @Nikdro for the change.
Fixes: #3651