Merge branch 'RED-8480' into 'master'

RED-8480: removed filter for recategorizations of type image / image-hint with...

Closes RED-8480

See merge request redactmanager/redaction-report-service!63
This commit is contained in:
Ali Oezyetimoglu 2024-04-02 11:33:56 +02:00
commit bb229f417c

View File

@ -116,14 +116,6 @@ public class EntityLogConverterService {
return;
}
// This is due to recategorize on images leading to a wrong legal basis.
if (!entry.getManualChanges().isEmpty()
&& (entry.getEntryType() == EntryType.IMAGE || entry.getEntryType() == EntryType.IMAGE_HINT)
&& getLastManualChange(entry).getProcessedDate() == null
&& getLastManualChange(entry).getManualRedactionType().equals(ManualRedactionType.RECATEGORIZE)) {
return;
}
if (settings.getMaxRedactionEntryValueLength() > 0 && entry.getValue() != null && entry.getValue().length() > settings.getMaxRedactionEntryValueLength()) {
entry.setValue(entry.getValue().substring(0, settings.getMaxRedactionEntryValueLength()) + "...");
log.info("Truncated value in dossier {}, file {} on pages {} to {} chars",