RED-7712 - Published information does not always trigger the skip mechanism
This commit is contained in:
parent
54bb79b294
commit
908b3ca4b2
@ -146,17 +146,13 @@ rule "CBI.7.0: Do not redact Names and Addresses if published information found
|
|||||||
|
|
||||||
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
||||||
when
|
when
|
||||||
$table: Table(hasEntitiesOfType("published_information"),
|
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
|
||||||
(hasEntitiesOfType("CBI_author") || hasEntitiesOfType("CBI_address")))
|
$tableCell: TableCell() from $table.streamTableCells().toList()
|
||||||
|
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
|
||||||
|
TextEntity(type == "published_information") from $tableCell.getEntities()
|
||||||
|
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
|
||||||
then
|
then
|
||||||
$table.streamEntitiesWhereRowContainsEntitiesOfType(List.of("CBI_author", "CBI_address"))
|
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
|
||||||
.forEach(redactionEntity -> {
|
|
||||||
redactionEntity.skipWithReferences(
|
|
||||||
"CBI.7.1",
|
|
||||||
"Published Information found in row",
|
|
||||||
$table.getEntitiesOfTypeInSameRow("published_information", redactionEntity)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -329,17 +329,13 @@ rule "CBI.7.0: Do not redact Names and Addresses if published information found
|
|||||||
|
|
||||||
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
||||||
when
|
when
|
||||||
$table: Table(hasEntitiesOfType("published_information"),
|
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
|
||||||
(hasEntitiesOfType("CBI_author") || hasEntitiesOfType("CBI_address")))
|
$tableCell: TableCell() from $table.streamTableCells().toList()
|
||||||
|
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
|
||||||
|
TextEntity(type == "published_information") from $tableCell.getEntities()
|
||||||
|
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
|
||||||
then
|
then
|
||||||
$table.streamEntitiesWhereRowContainsEntitiesOfType(List.of("CBI_author", "CBI_address"))
|
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
|
||||||
.forEach(redactionEntity -> {
|
|
||||||
redactionEntity.skipWithReferences(
|
|
||||||
"CBI.7.1",
|
|
||||||
"Published Information found in row",
|
|
||||||
$table.getEntitiesOfTypeInSameRow("published_information", redactionEntity)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -142,17 +142,13 @@ rule "CBI.7.0: Do not redact Names and Addresses if published information found
|
|||||||
|
|
||||||
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
||||||
when
|
when
|
||||||
$table: Table(hasEntitiesOfType("published_information"),
|
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
|
||||||
(hasEntitiesOfType("CBI_author") || hasEntitiesOfType("CBI_address")))
|
$tableCell: TableCell() from $table.streamTableCells().toList()
|
||||||
|
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
|
||||||
|
TextEntity(type == "published_information") from $tableCell.getEntities()
|
||||||
|
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
|
||||||
then
|
then
|
||||||
$table.streamEntitiesWhereRowContainsEntitiesOfType(List.of("CBI_author", "CBI_address"))
|
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
|
||||||
.forEach(redactionEntity -> {
|
|
||||||
redactionEntity.skipWithReferences(
|
|
||||||
"CBI.7.1",
|
|
||||||
"Published Information found in row",
|
|
||||||
$table.getEntitiesOfTypeInSameRow("published_information", redactionEntity)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -329,17 +329,13 @@ rule "CBI.7.0: Do not redact Names and Addresses if published information found
|
|||||||
|
|
||||||
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
||||||
when
|
when
|
||||||
$table: Table(hasEntitiesOfType("published_information"),
|
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
|
||||||
(hasEntitiesOfType("CBI_author") || hasEntitiesOfType("CBI_address")))
|
$tableCell: TableCell() from $table.streamTableCells().toList()
|
||||||
|
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
|
||||||
|
TextEntity(type == "published_information") from $tableCell.getEntities()
|
||||||
|
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
|
||||||
then
|
then
|
||||||
$table.streamEntitiesWhereRowContainsEntitiesOfType(List.of("CBI_author", "CBI_address"))
|
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
|
||||||
.forEach(redactionEntity -> {
|
|
||||||
redactionEntity.skipWithReferences(
|
|
||||||
"CBI.7.1",
|
|
||||||
"Published Information found in row",
|
|
||||||
$table.getEntitiesOfTypeInSameRow("published_information", redactionEntity)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -329,17 +329,13 @@ rule "CBI.7.0: Do not redact Names and Addresses if published information found
|
|||||||
|
|
||||||
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
rule "CBI.7.1: Do not redact Names and Addresses if published information found in same table row"
|
||||||
when
|
when
|
||||||
$table: Table(hasEntitiesOfType("published_information"),
|
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
|
||||||
(hasEntitiesOfType("CBI_author") || hasEntitiesOfType("CBI_address")))
|
$tableCell: TableCell() from $table.streamTableCells().toList()
|
||||||
|
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
|
||||||
|
TextEntity(type == "published_information") from $tableCell.getEntities()
|
||||||
|
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
|
||||||
then
|
then
|
||||||
$table.streamEntitiesWhereRowContainsEntitiesOfType(List.of("CBI_author", "CBI_address"))
|
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
|
||||||
.forEach(redactionEntity -> {
|
|
||||||
redactionEntity.skipWithReferences(
|
|
||||||
"CBI.7.1",
|
|
||||||
"Published Information found in row",
|
|
||||||
$table.getEntitiesOfTypeInSameRow("published_information", redactionEntity)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user