RED-3758: Update processed date only for approved manual redactions without processedDate
This commit is contained in:
parent
6e38ace691
commit
d56d409a39
@ -627,28 +627,28 @@ public class ManualRedactionService {
|
|||||||
|
|
||||||
if (manualRedactions.getEntriesToAdd() != null) {
|
if (manualRedactions.getEntriesToAdd() != null) {
|
||||||
manualRedactions.getEntriesToAdd().forEach(e -> {
|
manualRedactions.getEntriesToAdd().forEach(e -> {
|
||||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||||
addRedactionPersistenceService.markAsProcessed(e);
|
addRedactionPersistenceService.markAsProcessed(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (manualRedactions.getIdsToRemove() != null) {
|
if (manualRedactions.getIdsToRemove() != null) {
|
||||||
manualRedactions.getIdsToRemove().forEach(e -> {
|
manualRedactions.getIdsToRemove().forEach(e -> {
|
||||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||||
removeRedactionPersistenceService.markAsProcessed(e);
|
removeRedactionPersistenceService.markAsProcessed(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (manualRedactions.getForceRedactions() != null) {
|
if (manualRedactions.getForceRedactions() != null) {
|
||||||
manualRedactions.getForceRedactions().forEach(e -> {
|
manualRedactions.getForceRedactions().forEach(e -> {
|
||||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||||
forceRedactionPersistenceService.markAsProcessed(e);
|
forceRedactionPersistenceService.markAsProcessed(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (manualRedactions.getImageRecategorization() != null) {
|
if (manualRedactions.getImageRecategorization() != null) {
|
||||||
manualRedactions.getImageRecategorization().forEach(e -> {
|
manualRedactions.getImageRecategorization().forEach(e -> {
|
||||||
if (e.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (e.getStatus().equals(AnnotationStatus.APPROVED) && e.getProcessedDate() == null) {
|
||||||
recategorizationPersistenceService.markAsProcessed(e);
|
recategorizationPersistenceService.markAsProcessed(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user