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 88869d3c9 ATLAS-4802 : Atlas 'updateTime' parameter is not updated 
when business metadata, labels is edited.
88869d3c9 is described below

commit 88869d3c9c079fbe2118f5efd53a6a40c862f3e0
Author: chaitali borole <chaitali.bor...@cloudera.com>
AuthorDate: Sat Oct 21 23:26:15 2023 +0530

    ATLAS-4802 : Atlas 'updateTime' parameter is not updated when business 
metadata, labels is edited.
    
    Signed-off-by: Pinal Shah <pinal.s...@freestoneinfotech.com>
---
 .../apache/atlas/repository/store/graph/v2/EntityGraphMapper.java    | 5 ++++-
 1 file changed, 4 insertions(+), 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 c670740c9..01b88eb2f 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
@@ -393,7 +393,7 @@ public class EntityGraphMapper {
         }
 
         updateLabels(vertex, labels);
-
+        updateModificationMetadata(vertex);
         
entityChangeNotifier.onLabelsUpdatedFromEntity(graphHelper.getGuid(vertex), 
addedLabels, removedLabels);
     }
 
@@ -411,6 +411,7 @@ public class EntityGraphMapper {
             if (!updatedLabels.equals(existingLabels)) {
                 updateLabels(vertex, updatedLabels);
                 updatedLabels.removeAll(existingLabels);
+                updateModificationMetadata(vertex);
                 
entityChangeNotifier.onLabelsUpdatedFromEntity(graphHelper.getGuid(vertex), 
updatedLabels, null);
             }
         }
@@ -428,6 +429,7 @@ public class EntityGraphMapper {
                 if (!updatedLabels.equals(existingLabels)) {
                     updateLabels(vertex, updatedLabels);
                     existingLabels.removeAll(updatedLabels);
+                    updateModificationMetadata(vertex);
                     
entityChangeNotifier.onLabelsUpdatedFromEntity(graphHelper.getGuid(vertex), 
null, existingLabels);
                 }
             }
@@ -496,6 +498,7 @@ public class EntityGraphMapper {
         if (LOG.isDebugEnabled()) {
             LOG.debug("<== setBusinessAttributes(entityVertex={}, 
entityType={}, businessAttributes={}", entityVertex, entityType.getTypeName(), 
businessAttributes);
         }
+        updateModificationMetadata(entityVertex);
     }
 
     /*

Reply via email to