RED-3877: Increased analysis version in redaction log in migration
This commit is contained in:
parent
96b5ccfe30
commit
a079ad57ba
@ -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_")){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user