ATLAS-4802 : Atlas 'updateTime' parameter is not updated when business metadata, labels is edited.

Signed-off-by: Pinal Shah <pinal.shah@freestoneinfotech.com>
This commit is contained in:
chaitali borole 2023-10-21 23:26:15 +05:30 committed by Pinal Shah
parent 73467212ff
commit 88869d3c9c
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
/*