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
// Go through all edges and create new edges pointing to the replacedNodes, so
101
101
// that we copy the edge structure that the template node had.
102
102
graph.edges.foreach {
103
-
case_: Edge.Author=> () // do not copy authors, we want the new authors of the one who triggered this change.
104
103
case_: Edge.DerivedFromTemplate=> () // do not copy derived info, we get new derive infos for new nodes
105
104
caseedge: Edge.Automatedif edge.templateNodeId == templateNode.id => () // do not copy automation edges of template, otherwise the newNode would become a template.
106
105
caseedge: Edge.Childif edge.data.deletedAt.exists(EpochMilli.now.isAfter) => () // do not copy deleted parent edges
106
+
caseedge: Edge.Author=>// need to keep date of authorship, but change author. We will have an author edge for every change that was done to this node
0 commit comments