RED-8119: show only annotations with excluded=false.

This commit is contained in:
Nicoleta Panaghiu 2023-12-21 14:36:52 +02:00
parent ed28fe911f
commit b414060f73
2 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ export class AnnotationWrapper implements IListable {
hasBeenRemovedByManualOverride: boolean;
isRemoved = false;
isRemovedLocally = false;
excluded: boolean;
get isRuleBased() {
return this.engines.includes(LogEntryEngines.RULE);
@ -234,6 +235,7 @@ export class AnnotationWrapper implements IListable {
annotationWrapper.textBefore = logEntry.textBefore;
annotationWrapper.textAfter = logEntry.textAfter;
annotationWrapper.dictionaryOperation = logEntry.dictionaryEntry;
annotationWrapper.excluded = logEntry.excluded;
annotationWrapper.HINT = logEntry.entryType === EntityTypes.HINT;
annotationWrapper.IMAGE = logEntry.entryType === EntityTypes.IMAGE;

View File

@ -128,6 +128,7 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
let annotations = await this.#convertData(redactionLog);
this.#checkMissingTypes();
annotations = this.#isIqserDevMode ? annotations : annotations.filter(a => !a.isFalsePositive);
annotations = annotations.filter(a => !a.excluded);
this.#annotations.set(annotations);
}