You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that once you start thinking about it, it does not stop seeing problem with it :D
The NodeSubtreeSnapshot is NOT validated and taken for correct, imo it must not be possible for a user to do that accidentally with CopyNodesRecursively.
On Rebase there is NO validation of the $childNodes to insert, we just turn the serialised CopyNodesRecursively directly back into NodeAggregateWithNodeWasCreated events, defeating the sense of replaying commands partially as we kinda copy events here:
This is problematic because the conditions when a node tree snapshot was created might have changes:
The target node that was referenced by a child node might be deleted,
A child nodes node type might have been adjusted and the new property schema is not validated
... more?
When copying nodes they will lose information about their subtreetags
The text was updated successfully, but these errors were encountered:
In todays weekly Christian, Denny, Paula, Basti and me discussed that we should probably have a Serialised version of the command instead of adding the NodeSubtreeSnapshot to the API one.
Except the big known issues with
CopyNodesRecursively
I think that once you start thinking about it, it does not stop seeing problem with it :D
The
NodeSubtreeSnapshot
is NOT validated and taken for correct, imo it must not be possible for a user to do that accidentally withCopyNodesRecursively
.On Rebase there is NO validation of the
$childNodes
to insert, we just turn the serialisedCopyNodesRecursively
directly back intoNodeAggregateWithNodeWasCreated
events, defeating the sense of replaying commands partially as we kinda copy events here:When copying nodes they will lose information about their subtreetags
The text was updated successfully, but these errors were encountered: