adjusted for new redaction service
This commit is contained in:
parent
fdcf58aa3e
commit
8f208957bb
@ -226,16 +226,10 @@ public class MigrationService {
|
||||
.redacted(oldRedactionLogEntry.isRedacted())
|
||||
.isHint(oldRedactionLogEntry.isHint())
|
||||
.isRecommendation(oldRedactionLogEntry.isRecommendation())
|
||||
.hasBeenResized(false) // Will be added during merge of manual
|
||||
.hasBeenRecategorized(false) // Will be added during merge of manual
|
||||
.section(oldRedactionLogEntry.getSection())
|
||||
.color(oldRedactionLogEntry.getColor())
|
||||
.positions(oldRedactionLogEntry.getPositions())
|
||||
.sectionNumber(oldRedactionLogEntry.getSectionNumber())
|
||||
.manual(oldRedactionLogEntry.isManual())
|
||||
.status(oldRedactionLogEntry.getStatus())
|
||||
.manualRedactionType(oldRedactionLogEntry.getManualRedactionType())
|
||||
.manualRedactionUserId(null) // Will be added during merge of manual
|
||||
.isDictionaryEntry(oldRedactionLogEntry.isDictionaryEntry())
|
||||
.textBefore(oldRedactionLogEntry.getTextBefore())
|
||||
.textAfter(oldRedactionLogEntry.getTextAfter())
|
||||
@ -249,8 +243,6 @@ public class MigrationService {
|
||||
.imageHasTransparency(oldRedactionLogEntry.isImageHasTransparency())
|
||||
.isDossierDictionaryEntry(oldRedactionLogEntry.isDictionaryEntry())
|
||||
.excluded(oldRedactionLogEntry.isExcluded())
|
||||
.recategorizationType(oldRedactionLogEntry.getRecategorizationType())
|
||||
.legalBasisChangeValue(oldRedactionLogEntry.getLegalBasisChangeValue())
|
||||
.changes(List.of(new Change(analysisNumber, ChangeType.ADDED, lastProcessed)))
|
||||
.engines(getEngine(oldRedactionLogEntry))
|
||||
.reference(null)
|
||||
|
||||
@ -53,8 +53,7 @@ public class AnalysisFlagsCalculationService {
|
||||
|
||||
String type = getType(entry.getType());
|
||||
|
||||
if (!hasRedactions && (entry.isRedacted() && !entry.isManual() || entry.isManual() && entry.getStatus()
|
||||
.equals(AnnotationStatus.APPROVED))) {
|
||||
if (!hasRedactions && entry.isRedacted()) {
|
||||
hasRedactions = true;
|
||||
}
|
||||
|
||||
@ -66,7 +65,7 @@ public class AnalysisFlagsCalculationService {
|
||||
hasImages = true;
|
||||
}
|
||||
|
||||
if (!hasSuggestions && entry.isManual() && entry.getStatus().equals(AnnotationStatus.REQUESTED)) {
|
||||
if (!hasSuggestions && entry.getManualChanges().stream().anyMatch(e -> e.getAnnotationStatus() == AnnotationStatus.REQUESTED)) {
|
||||
hasSuggestions = true;
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<redaction-service.version>3.56.0</redaction-service.version>
|
||||
<redaction-service.version>3.67.0</redaction-service.version>
|
||||
<search-service.version>2.18.0</search-service.version>
|
||||
<pdftron-redaction-service.version>3.28.0</pdftron-redaction-service.version>
|
||||
<redaction-report-service.version>3.19.0</redaction-report-service.version>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user