Skip to content

Commit

Permalink
Merge pull request #3709 from atlanhq/DG-1894
Browse files Browse the repository at this point in the history
DG-1894 Last Updated Attribute for Custom metadata value now getting updated
  • Loading branch information
hr2904 authored Nov 14, 2024
2 parents 6ccc33c + 6cae188 commit 7c0472a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ public void setBusinessAttributes(AtlasVertex entityVertex, AtlasEntityType enti
}

if (MapUtils.isNotEmpty(updatedBusinessAttributes)) {
updateModificationMetadata(entityVertex);
entityChangeNotifier.onBusinessAttributesUpdated(AtlasGraphUtilsV2.getIdFromVertex(entityVertex), updatedBusinessAttributes);
}

Expand Down Expand Up @@ -823,6 +824,7 @@ public void addOrUpdateBusinessAttributes(AtlasVertex entityVertex, AtlasEntityT
}

if (MapUtils.isNotEmpty(updatedBusinessAttributes)) {
updateModificationMetadata(entityVertex);
entityChangeNotifier.onBusinessAttributesUpdated(AtlasGraphUtilsV2.getIdFromVertex(entityVertex), updatedBusinessAttributes);
}

Expand Down Expand Up @@ -875,6 +877,7 @@ public void removeBusinessAttributes(AtlasVertex entityVertex, AtlasEntityType e
}

if (MapUtils.isNotEmpty(updatedBusinessAttributes)) {
updateModificationMetadata(entityVertex);
entityChangeNotifier.onBusinessAttributesUpdated(AtlasGraphUtilsV2.getIdFromVertex(entityVertex), updatedBusinessAttributes);
}

Expand Down

0 comments on commit 7c0472a

Please sign in to comment.