RED-7782 - Address PR comments

This commit is contained in:
Andrei Isvoran 2023-10-27 12:14:22 +03:00
parent da43634b19
commit 7a0de45add

View File

@ -157,7 +157,7 @@ public class EntityLogService {
.findFirst().orElseThrow(() -> new NotFoundException("Entry with annotationId " + manualRedactionEntry.getAnnotationId() + " not found"));
List<Change> changes = new ArrayList<>();
changes.add(Change.builder()
.analysisNumber(1)
.analysisNumber(entityLog.getAnalysisNumber())
.dateTime(OffsetDateTime.now())
.type(ChangeType.ADDED)
.build());
@ -187,7 +187,7 @@ public class EntityLogService {
.manualChanges(List.of(ManualChange.builder()
.manualRedactionType(ManualRedactionType.ADD_LOCALLY)
.requestedDate(manualRedactionEntry.getRequestDate())
.processedDate(manualRedactionEntry.getProcessedDate())
.processedDate(null)
.userId(manualRedactionEntry.getUser())
.propertyChanges(Map.of("value", manualRedactionEntry.getValue()))
.build()))
@ -232,6 +232,7 @@ public class EntityLogService {
.manualRedactionType(ManualRedactionType.RESIZE)
.requestedDate(manualResizeRedaction.getRequestDate())
.processedDate(null)
.propertyChanges(Map.of("value", manualResizeRedaction.getValue()))
.userId(manualResizeRedaction.getUser()).build());
}
});