From 5844e656c3e3a6d21bb19f1068d19d8ab196221a Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Tue, 29 Aug 2023 14:00:01 +0300 Subject: [PATCH] DM-370: Filtered out ASSIGN_REVIEWER notification. --- apps/red-ui/src/app/services/notifications.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/red-ui/src/app/services/notifications.service.ts b/apps/red-ui/src/app/services/notifications.service.ts index c5fb6477e..6e1a91769 100644 --- a/apps/red-ui/src/app/services/notifications.service.ts +++ b/apps/red-ui/src/app/services/notifications.service.ts @@ -25,6 +25,7 @@ const NOTIFICATIONS_THRESHOLD = 1000; export class NotificationsService extends EntitiesService implements OnDestroy { readonly #config = getConfig(); readonly #subscription = new Subscription(); + readonly #filterDocumineNotifications: string[] = [NotificationTypes.ASSIGN_REVIEWER]; protected readonly _defaultModelPath = 'notification'; protected readonly _entityClass = Notification; @@ -118,6 +119,10 @@ export class NotificationsService extends EntitiesService { + if (this.#config.IS_DOCUMINE && this.#filterDocumineNotifications.includes(n.notificationType)) { + return false; + } + if (!(n.notificationType in NotificationTypes)) { return false; }