This is an automated email from the ASF dual-hosted git repository.
pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 89c3117fc ATLAS-4802 : Atlas 'updateTime' parameter is not updated
when business metadata, labels is edited.
89c3117fc is described below
commit 89c3117fc865440e8718e105f89ecd26078ab8a4
Author: chaitali borole <[email protected]>
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 <[email protected]>
---
.../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);
}
/*