reasoning: normalise graph relationship contract at proposal boundary
This commit is contained in:
@@ -62,6 +62,19 @@ function applyKnownEnumAliases(proposal, normalisationsApplied) {
|
||||
});
|
||||
}
|
||||
|
||||
if (Array.isArray(proposal.addedEdges)) {
|
||||
proposal.addedEdges = proposal.addedEdges.map((edge, index) => {
|
||||
if (edge?.relationship === "affects") {
|
||||
normalisationsApplied.push({
|
||||
path: ["addedEdges", index, "relationship"],
|
||||
change: "Converted affects to other",
|
||||
});
|
||||
return { ...edge, relationship: "other" };
|
||||
}
|
||||
return edge;
|
||||
});
|
||||
}
|
||||
|
||||
return proposal;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user