RED-8702: Explore document databases to store entityLog
* partial fix for wrong service call
This commit is contained in:
parent
a4988002cd
commit
c3fa3af805
@ -85,8 +85,10 @@ public class EntityChangeLogService {
|
|||||||
List<EntityLogEntry> removedEntries = previousEntityLogEntries.stream()
|
List<EntityLogEntry> removedEntries = previousEntityLogEntries.stream()
|
||||||
.filter(entry -> !existingIds.contains(entry.getId()))
|
.filter(entry -> !existingIds.contains(entry.getId()))
|
||||||
.toList();
|
.toList();
|
||||||
removedEntries.forEach(entry -> entry.getChanges().add(new Change(analysisNumber, ChangeType.REMOVED, now)));
|
removedEntries.stream()
|
||||||
removedEntries.forEach(entry -> entry.setState(EntryState.REMOVED));
|
.filter(entry -> !entry.getState().equals(EntryState.REMOVED))
|
||||||
|
.peek(entry -> entry.getChanges().add(new Change(analysisNumber, ChangeType.REMOVED, now)))
|
||||||
|
.forEach(entry -> entry.setState(EntryState.REMOVED));
|
||||||
//entityLogMongoService.updateEntityLogEntries(dossierId, fileId, removedEntries);
|
//entityLogMongoService.updateEntityLogEntries(dossierId, fileId, removedEntries);
|
||||||
newEntityLogEntries.addAll(removedEntries);
|
newEntityLogEntries.addAll(removedEntries);
|
||||||
return removedEntries;
|
return removedEntries;
|
||||||
|
|||||||
@ -212,7 +212,7 @@ public class RedactionStorageService {
|
|||||||
|
|
||||||
public List<EntityLogEntry> findEntriesWithIds(String dossierId, String fileId, Collection<String> entryIds) {
|
public List<EntityLogEntry> findEntriesWithIds(String dossierId, String fileId, Collection<String> entryIds) {
|
||||||
|
|
||||||
return entityLogMongoService.findAllEntityLogEntriesWithContainingNodeIdsWithEntryIdsIn(dossierId, fileId, entryIds);
|
return entityLogMongoService.findAllEntityLogEntriesWithEntryIdsIn(dossierId, fileId, entryIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user