-
-
Notifications
You must be signed in to change notification settings - Fork 234
TASK: Remove obsolete affected source dsp from node aggregate was removed #5516
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 obsolete affected source dsp from node aggregate was removed #5516
Conversation
…ll affectedCoveredDimensionSpacePoints With soft removals, actual removals are not desired and will not be shown in the workspace module. Now it does not matter if we were to use the `affectedOccupiedDimensionSpacePoints` or `affectedCoveredDimensionSpacePoints` Soft removals cannot make the distinction as well: neos#5507
…::$affectedOccupiedDimensionSpacePoints` Originally 8bccb95 introduced `$affectedOccupiedDimensionSpacePoints` for the change projection Now with soft removals we dont need to focus on `NodeAggregateWasRemoved` and could even ignore them. There is no need to difference between occupied and covered as soft removals cant do this either. Previously `removeNodeInDimensionSpacePointSet` issued not necessarily occupied points and also when removing a root node aggregate it might be surprising to find out that `$affectedOccupiedDimensionSpacePoints` is empty because the root node doesnt occupy a special point. To simplify the discussion for now we remove this now unused feature Well have to revise the question for affected vs source dimension space points either way in a professional manner for other events, see neos#4265 (comment) but that is not for now.
Also mark empty dimensions as affected source, but that will be removed wither way with: neos#5516 because its wrong.
This is required for the fix of At the current state of implementation i have to lie about the affected source: Lines 184 to 185 in 400d559
Lines 502 to 504 in 400d559
We previously never ran into that problem because neos-development-collection/Neos.ContentRepository.Core/Classes/Feature/NodeRemoval/NodeRemoval.php Lines 57 to 59 in c98608b
But as we write removal events in |
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.
Since the affected occupied DSPs are always a subset of the affected covered ones and projections et al must keep track of origins themselves anyway (if they care for them at all), we can (and should) safely remove this.
Also mark empty dimensions as affected source, but that will be removed wither way with: neos/neos-development-collection#5516 because its wrong.
`affectedOccupiedDimensionSpacePoints` is no longer a parameter
`affectedOccupiedDimensionSpacePoints` is no longer a parameter
Remove possibly incorrect or undefined
NodeAggregateWasRemoved::$affectedOccupiedDimensionSpacePoints
Originally 8bccb95 introduced
$affectedOccupiedDimensionSpacePoints
for the change projectionNow with soft removals we dont need to focus on
NodeAggregateWasRemoved
and could even ignore them. There is no need to difference between occupied and covered as soft removals cant do this either (#5507).This change thus marks removal events in all
affectedCoveredDimensionSpacePoints
instead. They will not be shown in the workspace module either way and its more of a debug tool.Previously
removeNodeInDimensionSpacePointSet
issued not necessarily occupied points and also when removing a root node aggregate it might be surprising to find out that$affectedOccupiedDimensionSpacePoints
is empty because the root node doesnt occupy a special point.To simplify the discussion for now we remove this now unused feature
Well have to revise the question for affected vs source dimension space points either way in a professional manner for other events, see #4265 (comment) but that is not for now.
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions