Skip to content

BUG: Workspace module shows soft deletion for every fallback #5507

Open
@mhsdesign

Description

@mhsdesign

When deleting a node ALL its fallbacks will be shown as soft removed:

Image

The reason for this is that the we mark all dimensions as changed that were affected by the event.

Now during evaluation of the changes we are mostly only interested in the dimension that triggered the cascade.

A naïve idea would be to skip changes where the node never occupied that part, but this is wrong as for when marking fallbacks as soft removed (which works because its an edge operation) we ignore them in the listing as well

if ($node->originDimensionSpacePoint->equals($change->originDimensionSpacePoint) === false) {
    // skip this change as the change projection also tracks affected fallback dimensions where a change never took place.
    continue;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions