From 4793d466908003199f84bd33a25a8e15cd2f082d Mon Sep 17 00:00:00 2001 From: Stepan Kiryakov Date: Mon, 30 Dec 2024 20:23:12 +0400 Subject: [PATCH] fix Signed-off-by: Stepan Kiryakov --- .../policy-label-configuration/components/nav-item.ts | 4 ++-- guardian-service/src/api/policy-labels.service.ts | 1 + guardian-service/src/api/policy-statistics.service.ts | 1 + interfaces/src/interface/policy-label.interface.ts | 1 + interfaces/src/interface/statistic.interface.ts | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/modules/statistics/policy-labels/policy-label-configuration/components/nav-item.ts b/frontend/src/app/modules/statistics/policy-labels/policy-label-configuration/components/nav-item.ts index 0dbb3ad877..843d6df7fb 100644 --- a/frontend/src/app/modules/statistics/policy-labels/policy-label-configuration/components/nav-item.ts +++ b/frontend/src/app/modules/statistics/policy-labels/policy-label-configuration/components/nav-item.ts @@ -250,7 +250,7 @@ export class NavItem implements TreeNode { title: item.name || '', name: item.name || '', description: item.description || '', - owner: item.owner || '', + owner: item.creator || '', messageId: item.messageId, config: item.config, } @@ -265,7 +265,7 @@ export class NavItem implements TreeNode { title: item.name || '', name: item.name || '', description: item.description || '', - owner: item.owner || '', + owner: item.creator || '', messageId: item.messageId, config: item.config, } diff --git a/guardian-service/src/api/policy-labels.service.ts b/guardian-service/src/api/policy-labels.service.ts index a9c7f05c9d..db76997a24 100644 --- a/guardian-service/src/api/policy-labels.service.ts +++ b/guardian-service/src/api/policy-labels.service.ts @@ -442,6 +442,7 @@ export async function policyLabelsAPI(logger: PinoLogger): Promise { delete label.id; delete label.status; delete label.owner; + delete label.topicId; label.creator = owner.creator; label.owner = owner.owner; label.policyId = policyId; diff --git a/guardian-service/src/api/policy-statistics.service.ts b/guardian-service/src/api/policy-statistics.service.ts index 0950380cf3..e7305d7310 100644 --- a/guardian-service/src/api/policy-statistics.service.ts +++ b/guardian-service/src/api/policy-statistics.service.ts @@ -673,6 +673,7 @@ export async function statisticsAPI(logger: PinoLogger): Promise { delete definition.status; delete definition.owner; delete definition.messageId; + delete definition.topicId; definition.creator = owner.creator; definition.owner = owner.owner; definition.policyId = policyId; diff --git a/interfaces/src/interface/policy-label.interface.ts b/interfaces/src/interface/policy-label.interface.ts index feaf36d11e..e72a745bc4 100644 --- a/interfaces/src/interface/policy-label.interface.ts +++ b/interfaces/src/interface/policy-label.interface.ts @@ -85,6 +85,7 @@ export interface IPolicyLabel { policyId?: string; messageId?: string; owner?: string; + creator?: string; status?: string; config?: IPolicyLabelConfig; } \ No newline at end of file diff --git a/interfaces/src/interface/statistic.interface.ts b/interfaces/src/interface/statistic.interface.ts index 3eeb861956..dadf5c6a10 100644 --- a/interfaces/src/interface/statistic.interface.ts +++ b/interfaces/src/interface/statistic.interface.ts @@ -62,6 +62,7 @@ export interface IStatistic { policyId?: string; messageId?: string; owner?: string; + creator?: string; status?: string; config?: IStatisticConfig; } \ No newline at end of file