From 811530971231b8e111fe478a0449dd43f8dad457 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 14 Mar 2024 16:18:08 +0200 Subject: [PATCH] RED-8735: add false positive option for dict-based skipped annotations. --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 2e26c6346..daf99d2d5 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -9,10 +9,8 @@ import { Dictionary, Earmark, EntityTypes, - EntryState, EntryStates, FalsePositiveSuperTypes, - IEntityLog, IEntityLogEntry, ILegalBasis, IPoint, @@ -72,6 +70,10 @@ export class AnnotationWrapper implements IListable { return this.engines.includes(LogEntryEngines.RULE); } + get isDictBased() { + return this.engines.includes(LogEntryEngines.DICTIONARY); + } + get searchKey(): string { return this.id; } @@ -90,7 +92,7 @@ export class AnnotationWrapper implements IListable { get canBeMarkedAsFalsePositive() { return ( - (this.isRecommendation || this.superType === SuperTypes.Redaction) && + (this.isRecommendation || this.superType === SuperTypes.Redaction || (this.isSkipped && this.isDictBased)) && !this.isImage && !this.imported && !this.pending &&