Revert "RED-5870: Enable force redaction of hints"

This commit is contained in:
Maverick Studer 2024-05-24 13:30:22 +02:00
parent f23e726c5c
commit ff6c56c1a5
2 changed files with 3 additions and 10 deletions

View File

@ -110,7 +110,7 @@ public class ManualChangeOverwrite {
} }
if (manualChange instanceof ManualRedactionEntry manualRedactionEntry) { if (manualChange instanceof ManualRedactionEntry manualRedactionEntry) {
setToAppliedIfNotHint(); setToApplied();
legalBasis = manualRedactionEntry.getLegalBasis(); legalBasis = manualRedactionEntry.getLegalBasis();
} }
@ -158,7 +158,7 @@ public class ManualChangeOverwrite {
} }
private void setToAppliedIfNotHint() { private void setToApplied() {
removed = false; removed = false;
ignored = false; ignored = false;
@ -167,13 +167,6 @@ public class ManualChangeOverwrite {
} }
} }
private void setToApplied() {
removed = false;
ignored = false;
applied = true;
}
public void addChange(BaseAnnotation manualChange) { public void addChange(BaseAnnotation manualChange) {

View File

@ -184,7 +184,7 @@ public class ManualChangesUnitTest extends BuildDocumentIntegrationTest {
.legalBasis("coolio") .legalBasis("coolio")
.build(); .build();
entity.getManualOverwrite().addChange(forceRedaction); entity.getManualOverwrite().addChange(forceRedaction);
assertTrue(entity.applied()); assertFalse(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());