You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pi...@apache.org on 2022/09/23 10:12:17 UTC

[atlas] branch master updated: ATLAS-4679: Improving entity updates by not including deleted edges

This is an automated email from the ASF dual-hosted git repository.

pinal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new e3a6d238e ATLAS-4679: Improving entity updates by not including deleted edges
e3a6d238e is described below

commit e3a6d238e3e0358b1f397968b1db1355c4818768
Author: Sheetal Shah <sh...@freestoneinfotech.com>
AuthorDate: Tue Sep 20 18:22:03 2022 +0530

    ATLAS-4679: Improving entity updates by not including deleted edges
    
    Signed-off-by: Pinal Shah <pi...@freestoneinfotech.com>
---
 .../org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
index 68d331dfd..c670740c9 100644
--- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
+++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
@@ -1464,7 +1464,7 @@ public class EntityGraphMapper {
        for (int index = 0; allArrayElements != null && index < allArrayElements.size(); index++) {
            Object element = allArrayElements.get(index);
 
-           if (element instanceof AtlasEdge) {
+           if (element instanceof AtlasEdge  && GraphHelper.getEdgeStatus((AtlasEdge)element) == AtlasRelationship.Status.ACTIVE) {
                AtlasGraphUtilsV2.setEncodedProperty((AtlasEdge) element, ATTRIBUTE_INDEX_PROPERTY_KEY, index);
             }
         }