Repository: atlas Updated Branches: refs/heads/master cb2e23b64 -> 69ea33486
ATLAS-2726: updated migration-import to add __name property to classification edges Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/69ea3348 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/69ea3348 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/69ea3348 Branch: refs/heads/master Commit: 69ea3348670e4f1710dc3661fa24ba072ac272ba Parents: cb2e23b Author: Ashutosh Mestry <[email protected]> Authored: Tue May 29 20:51:47 2018 -0700 Committer: Madhan Neethiraj <[email protected]> Committed: Tue May 29 23:11:35 2018 -0700 ---------------------------------------------------------------------- .../repository/graphdb/janus/migration/ElementProcessors.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/69ea3348/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/migration/ElementProcessors.java ---------------------------------------------------------------------- diff --git a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/migration/ElementProcessors.java b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/migration/ElementProcessors.java index 3d6b744..4017aaa 100644 --- a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/migration/ElementProcessors.java +++ b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/migration/ElementProcessors.java @@ -34,6 +34,7 @@ import java.util.UUID; import static org.apache.atlas.repository.Constants.ATTRIBUTE_INDEX_PROPERTY_KEY; import static org.apache.atlas.repository.Constants.ATTRIBUTE_KEY_PROPERTY_KEY; +import static org.apache.atlas.repository.Constants.CLASSIFICATION_EDGE_NAME_PROPERTY_KEY; import static org.apache.atlas.repository.Constants.CLASSIFICATION_ENTITY_GUID; import static org.apache.atlas.repository.Constants.CLASSIFICATION_VERTEX_PROPAGATE_KEY; import static org.apache.atlas.repository.Constants.ENTITY_TYPE_PROPERTY_KEY; @@ -312,6 +313,7 @@ public class ElementProcessors { if (StringUtils.isNotEmpty(inTypeName)) { if (inTypeName.equals(label)) { props.put(ENTITY_TYPE_PROPERTY_KEY, inTypeName); + props.put(CLASSIFICATION_EDGE_NAME_PROPERTY_KEY, inTypeName); addEntityGuidToTrait(in, out);
