Repository: atlas Updated Branches: refs/heads/master bb82e0df3 -> c0bf0b8af
ATLAS-2651: Tag Propagation , Deleted Entities : Relationships having Propagation from Deleted entities have tags added to relationship definition. Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/c0bf0b8a Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/c0bf0b8a Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/c0bf0b8a Branch: refs/heads/master Commit: c0bf0b8afa08b73f5052f4a78b0964caac065878 Parents: bb82e0d Author: Sarath Subramanian <[email protected]> Authored: Mon May 7 13:53:27 2018 -0700 Committer: Sarath Subramanian <[email protected]> Committed: Mon May 7 13:53:27 2018 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/repository/graph/GraphHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/c0bf0b8a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java index 063eb03..7540b4c 100755 --- a/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java +++ b/repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java @@ -74,8 +74,8 @@ import java.util.Objects; import java.util.Set; import java.util.UUID; +import static org.apache.atlas.model.instance.AtlasEntity.Status.DELETED; import static org.apache.atlas.repository.Constants.CLASSIFICATION_EDGE_IS_PROPAGATED_PROPERTY_KEY; -import static org.apache.atlas.repository.Constants.CLASSIFICATION_EDGE_STATE_PROPERTY_KEY; import static org.apache.atlas.repository.Constants.CLASSIFICATION_ENTITY_GUID; import static org.apache.atlas.repository.Constants.CLASSIFICATION_LABEL; import static org.apache.atlas.repository.Constants.CLASSIFICATION_EDGE_NAME_PROPERTY_KEY; @@ -1005,7 +1005,7 @@ public final class GraphHelper { public static List<AtlasVertex> getClassificationVertices(AtlasEdge edge) { List<AtlasVertex> ret = new ArrayList<>(); - if (edge != null) { + if (edge != null && getStatus(edge) != DELETED) { PropagateTags propagateTags = getPropagateTags(edge); AtlasVertex outVertex = edge.getOutVertex(); AtlasVertex inVertex = edge.getInVertex();
