Merge branch 'RED-9782-fix-bp' into 'release/2.465.x'
RED-9782:Automated Analysis should be disabled when uploading a document that... See merge request redactmanager/persistence-service!660
This commit is contained in:
commit
e2eb0d1047
@ -296,7 +296,9 @@ public class FileStatusService {
|
|||||||
.fileAttributes(convertAttributes(fileEntity.getFileAttributes(), dossier.getDossierTemplateId()))
|
.fileAttributes(convertAttributes(fileEntity.getFileAttributes(), dossier.getDossierTemplateId()))
|
||||||
.build();
|
.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);
|
analyseRequest.setMessageType(MessageType.IMPORTED_REDACTIONS_ONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -144,7 +144,7 @@ public class ManualRedactionMapper {
|
|||||||
.comment(forceRedactionRequestModel.getComment())
|
.comment(forceRedactionRequestModel.getComment())
|
||||||
.build();
|
.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);
|
manualRedactionEntryConsumer.accept(entityLogEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ public class ManualRedactionMapper {
|
|||||||
.value(legalBasisChangeRequest.getValue())
|
.value(legalBasisChangeRequest.getValue())
|
||||||
.build();
|
.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);
|
manualRedactionEntryConsumer.accept(entityLogEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,6 +244,7 @@ public class ManualRedactionMapper {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
||||||
|
&& !entityLogEntry.getEngines().contains(Engine.IMPORTED)
|
||||||
&& !recategorizationRequest.isAddToAllDossiers()
|
&& !recategorizationRequest.isAddToAllDossiers()
|
||||||
&& !recategorizationRequest.isAddToDictionary()
|
&& !recategorizationRequest.isAddToDictionary()
|
||||||
&& entryIsEntityType(entityLogEntry)) {
|
&& entryIsEntityType(entityLogEntry)) {
|
||||||
@ -314,7 +315,7 @@ public class ManualRedactionMapper {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
if (!entityLogEntry.getEngines().contains(Engine.MANUAL)
|
||||||
&& entryIsEntityType(entityLogEntry)
|
&& !entityLogEntry.getEngines().contains(Engine.IMPORTED)
|
||||||
&& !request.isAddToAllDossiers()
|
&& !request.isAddToAllDossiers()
|
||||||
&& !request.getUpdateDictionary()
|
&& !request.getUpdateDictionary()
|
||||||
&& entryIsEntityType(entityLogEntry)) {
|
&& entryIsEntityType(entityLogEntry)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user