Skip to content

Commit

Permalink
Merge pull request #3985 from atlanhq/mesh-316-support-unarchive
Browse files Browse the repository at this point in the history
MESH-316 | Support UnArchive - Migration testing
  • Loading branch information
ankitpatnaik-atlan authored Jan 16, 2025
2 parents d00cf85 + 06d3b3a commit 18804aa
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3005,16 +3005,13 @@ private List<AtlasEdge> removeUnusedArrayEntries(AtlasAttribute attribute, List<
continue;
}

boolean deleted = deleteDelegate.getHandler().deleteEdgeReference(edge, entryType.getTypeCategory(), attribute.isOwnedRef(),
true, attribute.getRelationshipEdgeDirection(), entityVertex);

// boolean deleted = false;
// if (edgeLabelsForHardDeletion.contains(edge.getLabel())) {
// graph.removeEdge(edge);
// } else {
// deleted = deleteDelegate.getHandler().deleteEdgeReference(edge, entryType.getTypeCategory(), attribute.isOwnedRef(),
// true, attribute.getRelationshipEdgeDirection(), entityVertex);
// }
boolean deleted = false;
if (edgeLabelsForHardDeletion.contains(edge.getLabel())) {
graph.removeEdge(edge);
} else {
deleted = deleteDelegate.getHandler().deleteEdgeReference(edge, entryType.getTypeCategory(), attribute.isOwnedRef(),
true, attribute.getRelationshipEdgeDirection(), entityVertex);
}

if (!deleted) {
additionalElements.add(edge);
Expand Down

0 comments on commit 18804aa

Please sign in to comment.