RM-76: Ignore excluded page logic in stored redactionLog, always set value in RedactionLogMerge #221
@ -109,7 +109,7 @@ public class RedactionLogMergeService {
|
|||||||
|
|
||||||
var skippedImportedRedactions = new HashSet<>();
|
var skippedImportedRedactions = new HashSet<>();
|
||||||
log.info("Merging Redaction log with manual redactions");
|
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,
|
var manualRedactionLogEntries = addManualAddEntries(sectionGrid,
|
||||||
manualRedactions.getEntriesToAdd(),
|
manualRedactions.getEntriesToAdd(),
|
||||||
@ -136,8 +136,12 @@ public class RedactionLogMergeService {
|
|||||||
entry.getPositions().forEach(pos -> {
|
entry.getPositions().forEach(pos -> {
|
||||||
if (!entry.isLocalManualRedaction() && excludedPages.contains(pos.getPage())) {
|
if (!entry.isLocalManualRedaction() && excludedPages.contains(pos.getPage())) {
|
||||||
entry.setExcluded(true);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user