Skip to content

Commit

Permalink
Merge branch 'task2/DG-1791' into dev/task2/DG-1791
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshi0301 committed Oct 23, 2024
2 parents 61db806 + ae46e5b commit f29ee07
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,6 @@ public void resetHasLineageOnInputOutputDelete(Collection<AtlasEdge> removedEdge

boolean isOutputEdge = PROCESS_OUTPUTS.equals(atlasEdge.getLabel());

AtlasVertex processVertex = atlasEdge.getOutVertex();
AtlasVertex assetVertex = atlasEdge.getInVertex();
String assetEdgeLabel = getLabel(getGuid(assetVertex), atlasEdge.getLabel());

Expand All @@ -1514,18 +1513,20 @@ public void resetHasLineageOnInputOutputDelete(Collection<AtlasEdge> removedEdge
updateAssetHasLineageStatus(assetVertex, atlasEdge, removedEdges);
}
}
if (getStatus(processVertex) == ACTIVE && !processVertex.equals(deletedVertex)) {
String edgeLabel = isOutputEdge ? PROCESS_OUTPUTS : PROCESS_INPUTS;

String processId = getGuid(processVertex);
String processEdgeLabel = getLabel(processId,edgeLabel);
boolean processLabelPairAlreadyProcessed = RequestContext.get().isEdgeLabelAlreadyProcessed(processEdgeLabel);
AtlasVertex processVertex = atlasEdge.getOutVertex();
String processId = getGuid(processVertex);
String edgeLabel = isOutputEdge ? PROCESS_OUTPUTS : PROCESS_INPUTS;
String processEdgeLabel = getLabel(processId, edgeLabel);
boolean processLabelPairAlreadyProcessed = RequestContext.get().isEdgeLabelAlreadyProcessed(processEdgeLabel);

if (processLabelPairAlreadyProcessed) {
continue;
}
RequestContext.get().addEdgeLabel(processEdgeLabel);
if (processLabelPairAlreadyProcessed) {
continue;
}

RequestContext.get().addEdgeLabel(processEdgeLabel);

if (getStatus(processVertex) == ACTIVE && !processVertex.equals(deletedVertex)) {
Iterator<AtlasEdge> edgeIterator = GraphHelper.getActiveEdges(processVertex, edgeLabel, AtlasEdgeDirection.BOTH);

boolean activeEdgeFound = false;
Expand Down

0 comments on commit f29ee07

Please sign in to comment.