2 new falgs for UI indicators
This commit is contained in:
parent
e42d5180ec
commit
f80eb6d791
@ -30,6 +30,8 @@ public class RedactionLogEntry {
|
|||||||
private boolean redacted;
|
private boolean redacted;
|
||||||
private boolean isHint;
|
private boolean isHint;
|
||||||
private boolean isRecommendation;
|
private boolean isRecommendation;
|
||||||
|
private boolean hasBeenResized;
|
||||||
|
private boolean hasBeenRecategorized;
|
||||||
private String section;
|
private String section;
|
||||||
private float[] color;
|
private float[] color;
|
||||||
|
|
||||||
|
|||||||
@ -117,6 +117,7 @@ public class RedactionLogMergeService {
|
|||||||
if (imageRecategorization.getStatus().equals(AnnotationStatus.APPROVED)) {
|
if (imageRecategorization.getStatus().equals(AnnotationStatus.APPROVED)) {
|
||||||
redactionLogEntry.setStatus(AnnotationStatus.APPROVED);
|
redactionLogEntry.setStatus(AnnotationStatus.APPROVED);
|
||||||
redactionLogEntry.setType(imageRecategorization.getType());
|
redactionLogEntry.setType(imageRecategorization.getType());
|
||||||
|
redactionLogEntry.setHasBeenRecategorized(true);
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", recategorized by manual override");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", recategorized by manual override");
|
||||||
} else if (imageRecategorization.getStatus().equals(AnnotationStatus.REQUESTED)) {
|
} else if (imageRecategorization.getStatus().equals(AnnotationStatus.REQUESTED)) {
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", requested to recategorize");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", requested to recategorize");
|
||||||
@ -220,6 +221,7 @@ public class RedactionLogMergeService {
|
|||||||
.isRedacted(), false));
|
.isRedacted(), false));
|
||||||
redactionLogEntry.setPositions(convertPositions(manualResizeRedact.getPositions()));
|
redactionLogEntry.setPositions(convertPositions(manualResizeRedact.getPositions()));
|
||||||
redactionLogEntry.setValue(manualResizeRedact.getValue());
|
redactionLogEntry.setValue(manualResizeRedact.getValue());
|
||||||
|
redactionLogEntry.setHasBeenResized(true);
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", resized by manual override");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", resized by manual override");
|
||||||
} else if (manualResizeRedact.getStatus().equals(AnnotationStatus.REQUESTED)) {
|
} else if (manualResizeRedact.getStatus().equals(AnnotationStatus.REQUESTED)) {
|
||||||
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", requested to resize redact");
|
manualOverrideReason = mergeReasonIfNecessary(redactionLogEntry.getReason(), ", requested to resize redact");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user