RED-8306 - An unprocessed remove from dict should not lead to a local remove

- when merging unprocessed removal check for remove from dictionary in order to set the manual redaction type accordingly
This commit is contained in:
Corina Olariu 2024-01-19 13:14:40 +02:00
parent f9ab3a2607
commit e8a5ae9da9

View File

@ -186,7 +186,7 @@ public class EntityLogMergeService {
addChanges(entityLogEntry.getChanges(), ChangeType.REMOVED, analysisNumber, idRemoval.getRequestDate()); addChanges(entityLogEntry.getChanges(), ChangeType.REMOVED, analysisNumber, idRemoval.getRequestDate());
entityLogEntry.getManualChanges() entityLogEntry.getManualChanges()
.add(ManualChange.builder() .add(ManualChange.builder()
.manualRedactionType(ManualRedactionType.REMOVE_LOCALLY) .manualRedactionType(idRemoval.isRemoveFromDictionary() ? ManualRedactionType.REMOVE_FROM_DICTIONARY : ManualRedactionType.REMOVE_LOCALLY)
.requestedDate(idRemoval.getRequestDate()) .requestedDate(idRemoval.getRequestDate())
.processedDate(null) .processedDate(null)
.userId(idRemoval.getUser()) .userId(idRemoval.getUser())