Merge branch 'release/2.349.x' into RED-7049-update-bp

This commit is contained in:
Corina Olariu 2024-03-11 21:34:25 +02:00
commit bf9bf38ac9
2 changed files with 9 additions and 3 deletions

View File

@ -240,6 +240,12 @@ public class SaasMigrationService implements TenantSyncService {
private int addManualRedactionEntries(List<ManualRedactionEntry> manualRedactionEntriesToAdd) {
manualRedactionEntriesToAdd.forEach(add -> {
if(add.getSection() != null && add.getSection().length() > 254){
add.setSection(add.getSection().substring(0, 254));
}
});
return manualRedactionService.addManualRedactionEntries(manualRedactionEntriesToAdd, true);
}

View File

@ -1,7 +1,7 @@
Delete
from redaction.manual_redaction
from manual_redaction
where concat(annotation_id, file_id) in (SELECT concat(manual_redaction_entry_entity_annotation_id, id)
from redaction.file file
JOIN redaction.manual_redaction_entry_entity_positions pos
from file file
JOIN manual_redaction_entry_entity_positions pos
ON file.id = pos.manual_redaction_entry_entity_file_id
where file.number_of_pages < pos.page);