RED-7782 - Address PR comments
This commit is contained in:
parent
da43634b19
commit
7a0de45add
@ -157,7 +157,7 @@ public class EntityLogService {
|
|||||||
.findFirst().orElseThrow(() -> new NotFoundException("Entry with annotationId " + manualRedactionEntry.getAnnotationId() + " not found"));
|
.findFirst().orElseThrow(() -> new NotFoundException("Entry with annotationId " + manualRedactionEntry.getAnnotationId() + " not found"));
|
||||||
List<Change> changes = new ArrayList<>();
|
List<Change> changes = new ArrayList<>();
|
||||||
changes.add(Change.builder()
|
changes.add(Change.builder()
|
||||||
.analysisNumber(1)
|
.analysisNumber(entityLog.getAnalysisNumber())
|
||||||
.dateTime(OffsetDateTime.now())
|
.dateTime(OffsetDateTime.now())
|
||||||
.type(ChangeType.ADDED)
|
.type(ChangeType.ADDED)
|
||||||
.build());
|
.build());
|
||||||
@ -187,7 +187,7 @@ public class EntityLogService {
|
|||||||
.manualChanges(List.of(ManualChange.builder()
|
.manualChanges(List.of(ManualChange.builder()
|
||||||
.manualRedactionType(ManualRedactionType.ADD_LOCALLY)
|
.manualRedactionType(ManualRedactionType.ADD_LOCALLY)
|
||||||
.requestedDate(manualRedactionEntry.getRequestDate())
|
.requestedDate(manualRedactionEntry.getRequestDate())
|
||||||
.processedDate(manualRedactionEntry.getProcessedDate())
|
.processedDate(null)
|
||||||
.userId(manualRedactionEntry.getUser())
|
.userId(manualRedactionEntry.getUser())
|
||||||
.propertyChanges(Map.of("value", manualRedactionEntry.getValue()))
|
.propertyChanges(Map.of("value", manualRedactionEntry.getValue()))
|
||||||
.build()))
|
.build()))
|
||||||
@ -232,6 +232,7 @@ public class EntityLogService {
|
|||||||
.manualRedactionType(ManualRedactionType.RESIZE)
|
.manualRedactionType(ManualRedactionType.RESIZE)
|
||||||
.requestedDate(manualResizeRedaction.getRequestDate())
|
.requestedDate(manualResizeRedaction.getRequestDate())
|
||||||
.processedDate(null)
|
.processedDate(null)
|
||||||
|
.propertyChanges(Map.of("value", manualResizeRedaction.getValue()))
|
||||||
.userId(manualResizeRedaction.getUser()).build());
|
.userId(manualResizeRedaction.getUser()).build());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user