Merge branch 'RED-8735' into 'master'
RED-8735: add false positive option for dict-based skipped annotations. See merge request redactmanager/red-ui!345
This commit is contained in:
commit
f73e5568de
@ -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 &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user