RED-8735: add false positive option for dict-based skipped annotations.

This commit is contained in:
Nicoleta Panaghiu 2024-03-14 16:18:08 +02:00
parent 0f89b1954a
commit 1a2ddcfaaa

View File

@ -9,10 +9,8 @@ import {
Dictionary, Dictionary,
Earmark, Earmark,
EntityTypes, EntityTypes,
EntryState,
EntryStates, EntryStates,
FalsePositiveSuperTypes, FalsePositiveSuperTypes,
IEntityLog,
IEntityLogEntry, IEntityLogEntry,
ILegalBasis, ILegalBasis,
IPoint, IPoint,
@ -72,6 +70,10 @@ export class AnnotationWrapper implements IListable {
return this.engines.includes(LogEntryEngines.RULE); return this.engines.includes(LogEntryEngines.RULE);
} }
get isDictBased() {
return this.engines.includes(LogEntryEngines.DICTIONARY);
}
get searchKey(): string { get searchKey(): string {
return this.id; return this.id;
} }
@ -90,7 +92,7 @@ export class AnnotationWrapper implements IListable {
get canBeMarkedAsFalsePositive() { get canBeMarkedAsFalsePositive() {
return ( return (
(this.isRecommendation || this.superType === SuperTypes.Redaction) && (this.isRecommendation || this.superType === SuperTypes.Redaction || (this.isSkipped && this.isDictBased)) &&
!this.isImage && !this.isImage &&
!this.imported && !this.imported &&
!this.pending && !this.pending &&