From c7a66bd2d4c5a939dab53d6ba0f9f5eac0827efa Mon Sep 17 00:00:00 2001 From: Joana Maia Date: Thu, 2 Jul 2026 15:55:52 +0100 Subject: [PATCH] fix: use project_admin_category from SILVER_DIM.PROJECTS (DE-981) Signed-off-by: Joana Maia --- services/apps/pcc_sync_worker/src/activities/exportActivity.ts | 2 +- services/apps/pcc_sync_worker/src/parser/rowParser.ts | 2 +- services/apps/pcc_sync_worker/src/parser/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/apps/pcc_sync_worker/src/activities/exportActivity.ts b/services/apps/pcc_sync_worker/src/activities/exportActivity.ts index 7d2725c30a..4138a4ea07 100644 --- a/services/apps/pcc_sync_worker/src/activities/exportActivity.ts +++ b/services/apps/pcc_sync_worker/src/activities/exportActivity.ts @@ -24,7 +24,7 @@ function buildSourceQuery(): string { p.description, p.project_logo, p.project_status, - p.project_maturity_level, + p.project_admin_category, ps.mapped_project_id, ps.mapped_project_name, ps.mapped_project_slug, diff --git a/services/apps/pcc_sync_worker/src/parser/rowParser.ts b/services/apps/pcc_sync_worker/src/parser/rowParser.ts index 89eda3e8df..5634f56fb9 100644 --- a/services/apps/pcc_sync_worker/src/parser/rowParser.ts +++ b/services/apps/pcc_sync_worker/src/parser/rowParser.ts @@ -180,7 +180,7 @@ export function parsePccRow(rawRows: Record[]): ParseResult { pccSlug: leafSlug, name, status: mappedStatus, - maturity: trimOrNull(firstRaw.PROJECT_MATURITY_LEVEL), + maturity: trimOrNull(firstRaw.PROJECT_ADMIN_CATEGORY), description: trimOrNull(firstRaw.DESCRIPTION), logoUrl: trimOrNull(firstRaw.PROJECT_LOGO), segmentIdFromSnowflake: trimOrNull(firstRaw.SEGMENT_ID), diff --git a/services/apps/pcc_sync_worker/src/parser/types.ts b/services/apps/pcc_sync_worker/src/parser/types.ts index d6bb6d2559..a1c97a7bd7 100644 --- a/services/apps/pcc_sync_worker/src/parser/types.ts +++ b/services/apps/pcc_sync_worker/src/parser/types.ts @@ -19,7 +19,7 @@ export interface PccParquetRow { DESCRIPTION: string | null PROJECT_LOGO: string | null PROJECT_STATUS: string | null - PROJECT_MATURITY_LEVEL: string | null + PROJECT_ADMIN_CATEGORY: string | null /** ID of the ancestor at this hierarchy level (hierarchy_level=1 → leaf itself). */ MAPPED_PROJECT_ID: string | null /** Name of the ancestor at this hierarchy level. */