RM-76: Ignore excluded page logic in stored redactionLog, always set value in RedactionLogMerge #221

Merged
dominique.eiflaender1 merged 1 commits from RM-76 into release/3.222.x 2023-12-04 16:40:06 +01:00

View File

@ -109,7 +109,7 @@ public class RedactionLogMergeService {
var skippedImportedRedactions = new HashSet<>();
log.info("Merging Redaction log with manual redactions");
if (manualRedactions != null) {
if (manualRedactions != null) { // This is never null! Could be removed
var manualRedactionLogEntries = addManualAddEntries(sectionGrid,
manualRedactions.getEntriesToAdd(),
@ -136,8 +136,12 @@ public class RedactionLogMergeService {
entry.getPositions().forEach(pos -> {
if (!entry.isLocalManualRedaction() && excludedPages.contains(pos.getPage())) {
entry.setExcluded(true);
} else {
entry.setExcluded(false); // This is a workaround, because in the analysis exlcuded is also set, but should not, because it triggers no reanalyis
}
});
} else {
entry.setExcluded(false); // This is a workaround, because in the analysis exlcuded is also set, but should not, because it triggers no reanalyis
}
}