RED-2861: Added isRectangle to manual add redaction
This commit is contained in:
parent
35c7593919
commit
b0fa8f1dd5
@ -23,6 +23,7 @@ public class AddRedactionRequest {
|
||||
private boolean addToDossierDictionary;
|
||||
private AnnotationStatus status;
|
||||
private String section;
|
||||
private boolean rectangle;
|
||||
|
||||
@Builder.Default
|
||||
private List<Rectangle> positions = new ArrayList<>();
|
||||
|
||||
@ -24,6 +24,7 @@ public class ManualRedactionEntry {
|
||||
private String legalBasis;
|
||||
private AnnotationStatus status;
|
||||
private String section;
|
||||
private boolean rectangle;
|
||||
private boolean addToDictionary;
|
||||
private boolean addToDossierDictionary;
|
||||
private OffsetDateTime requestDate;
|
||||
|
||||
@ -38,6 +38,8 @@ public class ManualRedactionEntryEntity {
|
||||
@Column
|
||||
private String section;
|
||||
@Column
|
||||
private boolean rectangle;
|
||||
@Column
|
||||
private boolean addToDictionary;
|
||||
@Column
|
||||
private boolean addToDossierDictionary;
|
||||
|
||||
@ -662,6 +662,7 @@ public class MigrationService {
|
||||
.legalBasis(addRedaction.getLegalBasis())
|
||||
.status(addRedaction.getStatus())
|
||||
.section(addRedaction.getSection())
|
||||
.rectangle(addRedaction.isRectangle())
|
||||
.addToDictionary(addRedaction.isAddToDictionary())
|
||||
.addToDossierDictionary(addRedaction.isAddToDossierDictionary())
|
||||
.requestDate(addRedaction.getRequestDate())
|
||||
|
||||
@ -26,6 +26,7 @@ public class ManualRedactionEntryRow {
|
||||
private String legalBasis;
|
||||
|
||||
private String section;
|
||||
private boolean rectangle;
|
||||
|
||||
@Builder.Default
|
||||
private List<Rectangle> positions = new ArrayList<>();
|
||||
|
||||
@ -832,6 +832,9 @@ databaseChangeLog:
|
||||
- column:
|
||||
name: section
|
||||
type: VARCHAR(255)
|
||||
- column:
|
||||
name: rectangle
|
||||
type: BOOLEAN
|
||||
- column:
|
||||
name: soft_deleted_time
|
||||
type: TIMESTAMP WITHOUT TIME ZONE
|
||||
|
||||
@ -76,11 +76,13 @@ public class ManualRedactionTest extends AbstractPersistenceServerServiceTest {
|
||||
.reason("1")
|
||||
.value("test")
|
||||
.legalBasis("1")
|
||||
.rectangle(true)
|
||||
.build());
|
||||
var loadedAddRedaction = manualRedactionClient.getAddRedaction(file.getId(), addRedaction.getAnnotationId());
|
||||
assertThat(loadedAddRedaction.getUser()).isEqualTo("user");
|
||||
assertThat(loadedAddRedaction.getType()).contains("manual");
|
||||
assertThat(loadedAddRedaction.getSection()).contains("section test");
|
||||
assertThat(loadedAddRedaction.isRectangle()).isEqualTo(true);
|
||||
|
||||
manualRedactionClient.updateAddRedactionStatus(dossier.getId(), file.getId(), addRedaction.getAnnotationId(), JSONPrimitive.of(AnnotationStatus.APPROVED));
|
||||
loadedAddRedaction = manualRedactionClient.getAddRedaction(file.getId(), addRedaction.getAnnotationId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user