-
-
Notifications
You must be signed in to change notification settings - Fork 224
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: Respect removed-state while reducing NodeData results #3652
Conversation
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.
👍
By reading the issue and the change, this seems reasonable and should do no harm. Since I'd love to have some more reviews, I'll just leave this as a comment for now…
Can we come up with a unit or functional test for this? |
It's hard for me, to get the current state here? Do we need additional Tests here? |
I guess this must be a behat test then, we should probably have all tools for it in the trait, so it's just a question of coming up with a behat description that fails without the change and succeeds with it. Given that sorting is semi random in those queries (maybe persistence identifier as primary key has influence?) that might be a tricky part for the test but at least there should be something. In general I like the change, it makes a lot of sense, but somewhere in the back of my head a little alarm is saying this existed before and had some other unwanted effect, BUT I couldn't find any evidence of that so I guess that worry is unfounded. |
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. |
I’ll close this PR in favor of the copycat for Neos 8.3. ;) |
(Hopefully) fixes #3651
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.