diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8384fd3a2f..078b66b94f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,6 +28,7 @@ on: - master - lineageondemand - cassandrapoliciesoptimisation + - ixop jobs: build: diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java index 51b74ecc25..bb26b9736b 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java @@ -285,7 +285,9 @@ public AtlasObjectId toAtlasObjectId(AtlasVertex entityVertex) throws AtlasBaseE AtlasObjectId ret = null; String typeName = entityVertex.getProperty(Constants.TYPE_NAME_PROPERTY_KEY, String.class); AtlasEntityType entityType = typeRegistry.getEntityTypeByName(typeName); - boolean enableJanusOptimisation = AtlasConfiguration.ATLAS_INDEXSEARCH_ENABLE_JANUS_OPTIMISATION_FOR_RELATIONS.getBoolean(); + boolean enableJanusOptimisation = + AtlasConfiguration.ATLAS_INDEXSEARCH_ENABLE_JANUS_OPTIMISATION_FOR_RELATIONS.getBoolean() + && RequestContext.get().isInvokedByIndexSearch(); Map referenceVertexProperties = null; if (entityType != null) { Map uniqueAttributes = new HashMap<>();