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