RED-7400: fixed error of breaking redaction log with removing engine-check for resize redactions

This commit is contained in:
Ali Oezyetimoglu 2023-08-14 15:15:21 +02:00
parent 09ea7cada2
commit 2eecf7c428

View File

@ -88,7 +88,11 @@ public class RedactionLogEntry {
return manualChanges != null && manualChanges.stream()
.anyMatch(mc -> mc.getManualRedactionType() == ManualRedactionType.ADD_LOCALLY && mc.getAnnotationStatus() == AnnotationStatus.APPROVED
|| mc.getManualRedactionType() == ManualRedactionType.RESIZE && mc.getAnnotationStatus() == AnnotationStatus.APPROVED && engines.contains(Engine.RULE) && !engines.contains(Engine.DICTIONARY));
|| isResizeRedaction(mc));
}
private boolean isResizeRedaction(ManualChange mc) {
return mc.getManualRedactionType() == ManualRedactionType.RESIZE && mc.getAnnotationStatus() == AnnotationStatus.APPROVED;
}