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:
commit
f4506557a1
@ -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("");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user