Skip to content
Snippets Groups Projects
Commit 52394af5 authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

comments

parent 00f1bf3b
No related branches found
No related tags found
1 merge request!170enable indexing of audit-trail attributes
Pipeline #58400 failed
...@@ -322,12 +322,8 @@ public class IndexerServiceImpl implements IndexerService { ...@@ -322,12 +322,8 @@ public class IndexerServiceImpl implements IndexerService {
if (storageRecord.getTags() != null) { if (storageRecord.getTags() != null) {
document.setTags(storageRecord.getTags()); document.setTags(storageRecord.getTags());
} }
if (!Strings.isNullOrEmpty(storageRecord.getCreateUser())) { document.setCreateUser(storageRecord.getCreateUser());
document.setCreateUser(storageRecord.getCreateUser()); document.setCreateTime(storageRecord.getCreateTime());
}
if (!Strings.isNullOrEmpty(storageRecord.getCreateTime())) {
document.setCreateTime(storageRecord.getCreateTime());
}
if (!Strings.isNullOrEmpty(storageRecord.getModifyUser())) { if (!Strings.isNullOrEmpty(storageRecord.getModifyUser())) {
document.setModifyUser(storageRecord.getModifyUser()); document.setModifyUser(storageRecord.getModifyUser());
} }
...@@ -497,12 +493,8 @@ public class IndexerServiceImpl implements IndexerService { ...@@ -497,12 +493,8 @@ public class IndexerServiceImpl implements IndexerService {
if (record.getAncestry() != null) { if (record.getAncestry() != null) {
indexerPayload.put(RecordMetaAttribute.ANCESTRY.getValue(), record.getAncestry()); indexerPayload.put(RecordMetaAttribute.ANCESTRY.getValue(), record.getAncestry());
} }
if (!Strings.isNullOrEmpty(record.getCreateUser())) { indexerPayload.put(RecordMetaAttribute.CREATE_USER.getValue(), record.getCreateUser());
indexerPayload.put(RecordMetaAttribute.CREATE_USER.getValue(), record.getCreateUser()); indexerPayload.put(RecordMetaAttribute.CREATE_TIME.getValue(), record.getCreateTime());
}
if (!Strings.isNullOrEmpty(record.getCreateTime())) {
indexerPayload.put(RecordMetaAttribute.CREATE_TIME.getValue(), record.getCreateTime());
}
if (!Strings.isNullOrEmpty(record.getModifyUser())) { if (!Strings.isNullOrEmpty(record.getModifyUser())) {
indexerPayload.put(RecordMetaAttribute.MODIFY_USER.getValue(), record.getModifyUser()); indexerPayload.put(RecordMetaAttribute.MODIFY_USER.getValue(), record.getModifyUser());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment