Merge branch 'RED-8878' into 'release/1.363.x'

RED-8878: Do not add redacted flag for REMOVED entries

See merge request redactmanager/persistence-service!413
This commit is contained in:
Dominique Eifländer 2024-04-03 09:13:02 +02:00
commit 00c932dc9b

View File

@ -105,11 +105,11 @@ public class AnalysisFlagsCalculationService {
lastRedactionModification = lastChange.getDateTime();
}
if (!hasRedactions && entry.isRedacted() && !entry.isRecommendation()) {
if (!hasRedactions && entry.isRedacted() && !entry.isRecommendation() && (lastChange == null || lastChange.getType() != ChangeType.REMOVED)) {
hasRedactions = true;
}
if (!hasHints && entry.isHint()) {
if (!hasHints && entry.isHint() && (lastChange == null || lastChange.getType() != ChangeType.REMOVED)) {
hasHints = true;
}