Merge branch 'RED-10094' into 'master'

RED-10094: Revert back to not use justification technical name for lookup...

Closes RED-10094

See merge request redactmanager/redaction-report-service!100
This commit is contained in:
Dominique Eifländer 2024-09-24 15:52:15 +02:00
commit f4506557a1

View File

@ -191,15 +191,7 @@ public class EntityLogConverterService {
private static String getJustificationReason(List<EntityLogLegalBasis> legalBasisMappings, EntityLogEntry entry) {
return legalBasisMappings.stream()
.filter((EntityLogLegalBasis lbm) -> {
if (lbm.getTechnicalName() == null) {
return false;
}
if (lbm.getTechnicalName().equalsIgnoreCase(entry.getLegalBasis())) {
return true;
}
return false;
})
.filter(lbm -> lbm.getReason().equalsIgnoreCase(entry.getLegalBasis()))
.findAny()
.map(EntityLogLegalBasis::getDescription)
.orElse("");