RED-3877: Increased analysis version in redaction log in migration

This commit is contained in:
deiflaender 2022-04-14 10:39:47 +02:00
parent 96b5ccfe30
commit a079ad57ba

View File

@ -46,6 +46,7 @@ public class DictionaryToEntityMigration2 extends Migration {
files.forEach(file -> {
if(file.getDeleted() == null){
var redactionLog = fileManagementStorageService.getRedactionLog(dossier.getId(), file.getId());
redactionLog.setAnalysisVersion(2);
redactionLog.getRedactionLogEntry().removeIf(entry -> entry.getType().equals("false_positive"));
redactionLog.getRedactionLogEntry().forEach(entry -> {
if(entry.getType().startsWith("recommendation_")){