DM-602: Do not always set addToDictionary for recategorizations
This commit is contained in:
parent
9e04a47e90
commit
e55cd716cc
@ -211,7 +211,6 @@ public class ManualRedactionService {
|
||||
recategorizationPersistenceService.updateStatus(fileId,
|
||||
recategorizationRequest.getAnnotationId(),
|
||||
AnnotationStatus.APPROVED,
|
||||
typeIdsOfDictionariesWithAdd != null,
|
||||
typeIdsOfDictionariesWithAdd,
|
||||
typeIdsOfDictionariesWithDelete);
|
||||
|
||||
|
||||
@ -202,7 +202,7 @@ public class ManualRedactionUndoService {
|
||||
fileId,
|
||||
dossierId,
|
||||
recategorizationEntity.getTypeIdsOfDictionariesWithAdd());
|
||||
recategorizationPersistenceService.updateStatus(fileId, annotationId, AnnotationStatus.APPROVED, false, Collections.emptySet(), Collections.emptySet());
|
||||
recategorizationPersistenceService.updateStatus(fileId, annotationId, AnnotationStatus.APPROVED, Collections.emptySet(), Collections.emptySet());
|
||||
recategorizationPersistenceService.softDelete(fileId, annotationId, OffsetDateTime.now());
|
||||
}
|
||||
analysisFlagsCalculationService.calculateFlags(dossierId, fileId);
|
||||
|
||||
@ -50,7 +50,6 @@ public class RecategorizationPersistenceService {
|
||||
public void updateStatus(String fileId,
|
||||
String annotationId,
|
||||
AnnotationStatus annotationStatus,
|
||||
boolean modifiedDictionary,
|
||||
Set<String> typeIdsOfDictionaryWithAdd,
|
||||
Set<String> typeIdsOfDictionaryWithDelete) {
|
||||
|
||||
@ -58,7 +57,6 @@ public class RecategorizationPersistenceService {
|
||||
.orElseThrow(() -> new NotFoundException("Unknown file/annotation combination: " + fileId + "/" + annotationId));
|
||||
|
||||
addRedaction.setStatus(annotationStatus);
|
||||
addRedaction.setAddToDictionary(modifiedDictionary);
|
||||
addRedaction.setTypeIdsOfDictionariesWithAdd(typeIdsOfDictionaryWithAdd);
|
||||
addRedaction.setTypeIdsOfDictionariesWithDelete(typeIdsOfDictionaryWithDelete);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user