RED-8119: show only annotations with excluded=false.
This commit is contained in:
parent
ed28fe911f
commit
b414060f73
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user