Merge branch 'RED-9782-fix' into 'master'
RED-9782:Automated Analysis should be disabled when uploading a document that... Closes RED-9782 See merge request redactmanager/persistence-service!661
This commit is contained in:
commit
48ce264967
@ -297,7 +297,9 @@ public class FileStatusService {
|
||||
.fileAttributes(convertAttributes(fileEntity.getFileAttributes(), dossier.getDossierTemplateId()))
|
||||
.build();
|
||||
|
||||
if (fileEntity.isExcludedFromAutomaticAnalysis() && fileManagementStorageService.objectExists(dossierId, fileId, FileType.IMPORTED_REDACTIONS)) {
|
||||
if (fileEntity.isExcludedFromAutomaticAnalysis() && !manualRedactionReanalyse && fileManagementStorageService.objectExists(dossierId,
|
||||
fileId,
|
||||
FileType.IMPORTED_REDACTIONS)) {
|
||||
analyseRequest.setMessageType(MessageType.IMPORTED_REDACTIONS_ONLY);
|
||||
}
|
||||
|
||||
|
||||
@ -145,7 +145,7 @@ public class ManualRedactionMapper {
|
||||
.comment(forceRedactionRequestModel.getComment())
|
||||
.build();
|
||||
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL) && entryIsEntityType(entityLogEntry)) {
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL) && !entityLogEntry.getEngines().contains(Engine.IMPORTED) && entryIsEntityType(entityLogEntry)) {
|
||||
manualRedactionEntryConsumer.accept(entityLogEntry);
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ public class ManualRedactionMapper {
|
||||
.value(legalBasisChangeRequest.getValue())
|
||||
.build();
|
||||
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL) && entryIsEntityType(entityLogEntry)) {
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL) && !entityLogEntry.getEngines().contains(Engine.IMPORTED) && entryIsEntityType(entityLogEntry)) {
|
||||
request.setBasedOnDictAnnotationId(legalBasisChangeRequest.getAnnotationId());
|
||||
entityLogEntry.setId(uuid);
|
||||
manualRedactionEntryConsumer.accept(entityLogEntry);
|
||||
@ -249,6 +249,7 @@ public class ManualRedactionMapper {
|
||||
.build();
|
||||
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
||||
&& !entityLogEntry.getEngines().contains(Engine.IMPORTED)
|
||||
&& !recategorizationRequest.isAddToAllDossiers()
|
||||
&& !recategorizationRequest.isAddToDictionary()
|
||||
&& entryIsEntityType(entityLogEntry)) {
|
||||
@ -323,7 +324,11 @@ public class ManualRedactionMapper {
|
||||
.addToAllDossiers(resizeRedactionRequest.isAddToAllDossiers())
|
||||
.build();
|
||||
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL) && !request.isAddToAllDossiers() && !request.getUpdateDictionary() && entryIsEntityType(entityLogEntry)) {
|
||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
||||
&& !entityLogEntry.getEngines().contains(Engine.IMPORTED)
|
||||
&& !request.isAddToAllDossiers()
|
||||
&& !request.getUpdateDictionary()
|
||||
&& entryIsEntityType(entityLogEntry)) {
|
||||
request.setBasedOnDictAnnotationId(resizeRedactionRequest.getAnnotationId());
|
||||
entityLogEntry.setId(uuid);
|
||||
manualRedactionEntryConsumer.accept(entityLogEntry);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user