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

This commit is contained in:
Dominique Eifländer 2023-12-04 16:14:38 +01:00
parent c76b79de2d
commit d574ef0866

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
}
}