RED-7784 - Don't add to report unprocessed manual add dict and image recategorizations

This commit is contained in:
Andrei Isvoran 2023-11-28 12:09:38 +02:00
parent d7401178ca
commit 7e7bec0b4a

View File

@ -117,7 +117,17 @@ public class EntityLogConverterService {
return;
}
if (!entry.getManualChanges().isEmpty() && (entry.isDictionaryEntry() || entry.isDossierDictionaryEntry()) && entry.getManualChanges().get(entry.getManualChanges().size() - 1).getProcessedDate() == null) {
if (!entry.getManualChanges().isEmpty()
&& (entry.getEntryType() == EntryType.IMAGE || entry.getEntryType() == EntryType.IMAGE_HINT)
&& entry.getManualChanges().get(entry.getManualChanges().size() - 1).getProcessedDate() == null
&& entry.getManualChanges().get(entry.getManualChanges().size() - 1).getManualRedactionType().equals(ManualRedactionType.RECATEGORIZE)) {
return;
}
if (!entry.getManualChanges().isEmpty()
&& (entry.isDictionaryEntry() || entry.isDossierDictionaryEntry())
&& entry.getManualChanges().get(entry.getManualChanges().size() - 1).getProcessedDate() == null
&& entry.getManualChanges().get(entry.getManualChanges().size() - 1).getManualRedactionType().equals(ManualRedactionType.ADD_TO_DICTIONARY)) {
return;
}