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

This commit is contained in:
Nicoleta Panaghiu 2023-12-21 14:44:12 +02:00
parent 83fd9b8c00
commit 9ebb463af8
2 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
hasBeenForcedHint: boolean;
hasBeenForcedRedaction: boolean;
hasBeenRemovedByManualOverride: boolean;
excluded: boolean;
get searchKey(): string {
return this.id;
@ -316,6 +317,7 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
annotationWrapper.reference = redactionLogEntry.reference || [];
annotationWrapper.rectangle = redactionLogEntry.rectangle;
annotationWrapper.hintDictionary = redactionLogEntry.hintDictionary;
annotationWrapper.excluded = redactionLogEntry.excluded;
annotationWrapper.hasBeenResized = !!redactionLogEntry.manualChanges?.find(
c => c.manualRedactionType === ManualRedactionTypes.RESIZE && c.annotationStatus === LogEntryStatuses.APPROVED,
);

View File

@ -99,6 +99,7 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
map(annotations =>
this._userPreferenceService.areDevFeaturesEnabled ? annotations : annotations.filter(a => !a.isFalsePositive),
),
map(annotations => annotations.filter(a => !a.excluded)),
shareLast(),
);
}