Skip to content

Commit 8751387

Browse files
committed
fix updated by and createdby field
1 parent 391e510 commit 8751387

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,6 @@ private AtlasEntityHeader mapVertexToAtlasEntityHeader(AtlasVertex entityVertex,
11061106
// Common properties
11071107
String typeName = (String) getCommonProperty(vertexProperties, Constants.TYPE_NAME_PROPERTY_KEY);
11081108
String guid = (String) getCommonProperty(vertexProperties, GUID_PROPERTY_KEY);
1109-
String createdBy = (String) getCommonProperty(vertexProperties, CREATED_BY_KEY);
1110-
String updatedBy = (String) getCommonProperty(vertexProperties, MODIFIED_BY_KEY);
11111109
Long createTime = (Long) getCommonProperty(vertexProperties, TIMESTAMP_PROPERTY_KEY);
11121110
Long updateTime = (Long) getCommonProperty(vertexProperties, MODIFICATION_TIMESTAMP_PROPERTY_KEY);
11131111
Boolean isIncomplete = isEntityIncomplete(entityVertex);
@@ -1117,8 +1115,8 @@ private AtlasEntityHeader mapVertexToAtlasEntityHeader(AtlasVertex entityVertex,
11171115
ret.setGuid(guid);
11181116
ret.setStatus(GraphHelper.getStatus(entityVertex));
11191117
ret.setIsIncomplete(isIncomplete);
1120-
ret.setCreatedBy(createdBy);
1121-
ret.setUpdatedBy(updatedBy);
1118+
ret.setCreatedBy(GraphHelper.getCreatedByAsString(entityVertex));
1119+
ret.setUpdatedBy(GraphHelper.getModifiedByAsString(entityVertex));
11221120
ret.setCreateTime(createTime != null ? new Date(createTime) : null);
11231121
ret.setUpdateTime(updateTime != null ? new Date(updateTime) : null);
11241122
ret.setLabels(getLabels(entityVertex));

0 commit comments

Comments
 (0)