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

Merged
ali.oezyetimoglu1 merged 2 commits from RED-7400-ps1 into master 2023-08-16 11:58:47 +02:00
Showing only changes of commit 2eecf7c428 - Show all commits

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;
}