Merge branch 'RED-7384' into 'release/2.349.x'
RED-7384: Migration fixes See merge request redactmanager/persistence-service!405
This commit is contained in:
commit
69c28771c9
@ -6,7 +6,7 @@ plugins {
|
|||||||
jacoco
|
jacoco
|
||||||
}
|
}
|
||||||
|
|
||||||
val redactionServiceVersion by rootProject.extra { "4.199.0" }
|
val redactionServiceVersion by rootProject.extra { "4.244.28" }
|
||||||
val pdftronRedactionServiceVersion by rootProject.extra { "4.48.0" }
|
val pdftronRedactionServiceVersion by rootProject.extra { "4.48.0" }
|
||||||
val redactionReportServiceVersion by rootProject.extra { "4.47.0" }
|
val redactionReportServiceVersion by rootProject.extra { "4.47.0" }
|
||||||
val searchServiceVersion by rootProject.extra { "2.71.0" }
|
val searchServiceVersion by rootProject.extra { "2.71.0" }
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import com.iqser.red.service.persistence.management.v1.processor.entity.migratio
|
|||||||
import com.iqser.red.service.persistence.management.v1.processor.exception.InternalServerErrorException;
|
import com.iqser.red.service.persistence.management.v1.processor.exception.InternalServerErrorException;
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.exception.NotFoundException;
|
import com.iqser.red.service.persistence.management.v1.processor.exception.NotFoundException;
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.model.ManualChangesQueryOptions;
|
import com.iqser.red.service.persistence.management.v1.processor.model.ManualChangesQueryOptions;
|
||||||
|
import com.iqser.red.service.persistence.management.v1.processor.service.CommentService;
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.service.DossierService;
|
import com.iqser.red.service.persistence.management.v1.processor.service.DossierService;
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.service.IndexingService;
|
import com.iqser.red.service.persistence.management.v1.processor.service.IndexingService;
|
||||||
import com.iqser.red.service.persistence.management.v1.processor.service.job.AutomaticAnalysisJob;
|
import com.iqser.red.service.persistence.management.v1.processor.service.job.AutomaticAnalysisJob;
|
||||||
@ -68,6 +69,7 @@ public class SaasMigrationService implements TenantSyncService {
|
|||||||
SaasAnnotationIdMigrationService saasAnnotationIdMigrationService;
|
SaasAnnotationIdMigrationService saasAnnotationIdMigrationService;
|
||||||
UncompressedFilesMigrationService uncompressedFilesMigrationService;
|
UncompressedFilesMigrationService uncompressedFilesMigrationService;
|
||||||
ManualRedactionService manualRedactionService;
|
ManualRedactionService manualRedactionService;
|
||||||
|
CommentService commentService;
|
||||||
RankDeDuplicationService rankDeDuplicationService;
|
RankDeDuplicationService rankDeDuplicationService;
|
||||||
|
|
||||||
|
|
||||||
@ -170,6 +172,7 @@ public class SaasMigrationService implements TenantSyncService {
|
|||||||
.dossierId(dossierId)
|
.dossierId(dossierId)
|
||||||
.fileId(fileId)
|
.fileId(fileId)
|
||||||
.manualRedactions(manualRedactionProviderService.getManualRedactions(fileId, ManualChangesQueryOptions.allWithoutDeleted()))
|
.manualRedactions(manualRedactionProviderService.getManualRedactions(fileId, ManualChangesQueryOptions.allWithoutDeleted()))
|
||||||
|
.entitiesWithComments(commentService.getCommentCounts(fileId).keySet())
|
||||||
.build());
|
.build());
|
||||||
log.info("Layout Parsing finished for saas migration for tenant {} dossier {} and file {}", TenantContext.getTenantId(), dossierId, fileId);
|
log.info("Layout Parsing finished for saas migration for tenant {} dossier {} and file {}", TenantContext.getTenantId(), dossierId, fileId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@ -351,6 +351,7 @@ public class EntityLogMergeService {
|
|||||||
entityLogEntry.setEntryType(getEntryType(isHint, recategorization.getType()));
|
entityLogEntry.setEntryType(getEntryType(isHint, recategorization.getType()));
|
||||||
entityLogEntry.setState(isHint ? EntryState.SKIPPED : EntryState.APPLIED);
|
entityLogEntry.setState(isHint ? EntryState.SKIPPED : EntryState.APPLIED);
|
||||||
entityLogEntry.getEngines().add(Engine.MANUAL);
|
entityLogEntry.getEngines().add(Engine.MANUAL);
|
||||||
|
|
||||||
addChanges(entityLogEntry.getChanges(), ChangeType.CHANGED, analysisNumber, recategorization.getRequestDate());
|
addChanges(entityLogEntry.getChanges(), ChangeType.CHANGED, analysisNumber, recategorization.getRequestDate());
|
||||||
entityLogEntry.getManualChanges()
|
entityLogEntry.getManualChanges()
|
||||||
.add(ManualChange.builder()
|
.add(ManualChange.builder()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user