RED-5870: Enable force redaction of hints
This commit is contained in:
parent
45469a0588
commit
6cc50ef949
@ -110,7 +110,7 @@ public class ManualChangeOverwrite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (manualChange instanceof ManualRedactionEntry manualRedactionEntry) {
|
if (manualChange instanceof ManualRedactionEntry manualRedactionEntry) {
|
||||||
setToApplied();
|
setToAppliedIfNotHint();
|
||||||
legalBasis = manualRedactionEntry.getLegalBasis();
|
legalBasis = manualRedactionEntry.getLegalBasis();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ public class ManualChangeOverwrite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void setToApplied() {
|
private void setToAppliedIfNotHint() {
|
||||||
|
|
||||||
removed = false;
|
removed = false;
|
||||||
ignored = false;
|
ignored = false;
|
||||||
@ -167,6 +167,13 @@ public class ManualChangeOverwrite {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setToApplied() {
|
||||||
|
|
||||||
|
removed = false;
|
||||||
|
ignored = false;
|
||||||
|
applied = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void addChange(BaseAnnotation manualChange) {
|
public void addChange(BaseAnnotation manualChange) {
|
||||||
|
|
||||||
|
|||||||
@ -184,7 +184,7 @@ public class ManualChangesUnitTest extends BuildDocumentIntegrationTest {
|
|||||||
.legalBasis("coolio")
|
.legalBasis("coolio")
|
||||||
.build();
|
.build();
|
||||||
entity.getManualOverwrite().addChange(forceRedaction);
|
entity.getManualOverwrite().addChange(forceRedaction);
|
||||||
assertFalse(entity.applied());
|
assertTrue(entity.applied());
|
||||||
assertFalse(entity.ignored());
|
assertFalse(entity.ignored());
|
||||||
assertFalse(entity.removed());
|
assertFalse(entity.removed());
|
||||||
assertEquals(reason + ", removed by manual override, forced by manual override", entity.buildReasonWithManualChangeDescriptions());
|
assertEquals(reason + ", removed by manual override, forced by manual override", entity.buildReasonWithManualChangeDescriptions());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user