From b587dfd3444ece981f9d64c1ec8d1113ca52387d Mon Sep 17 00:00:00 2001 From: IceS2 Date: Tue, 25 Feb 2025 17:54:24 +0100 Subject: [PATCH] Remove followers from data insights processing (#19973) --- .../processors/DataInsightsEntityEnricherProcessor.java | 4 ---- .../src/main/resources/dataInsights/config.json | 1 - 2 files changed, 5 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/insights/workflows/dataAssets/processors/DataInsightsEntityEnricherProcessor.java b/openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/insights/workflows/dataAssets/processors/DataInsightsEntityEnricherProcessor.java index 210aaf38bdb..dd0997a7748 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/insights/workflows/dataAssets/processors/DataInsightsEntityEnricherProcessor.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/insights/workflows/dataAssets/processors/DataInsightsEntityEnricherProcessor.java @@ -4,7 +4,6 @@ import static org.openmetadata.schema.EntityInterface.ENTITY_TYPE_TO_CLASS_MAP; import static org.openmetadata.service.apps.bundles.insights.utils.TimestampUtils.END_TIMESTAMP_KEY; import static org.openmetadata.service.apps.bundles.insights.utils.TimestampUtils.START_TIMESTAMP_KEY; import static org.openmetadata.service.apps.bundles.insights.workflows.dataAssets.DataAssetsWorkflow.ENTITY_TYPE_FIELDS_KEY; -import static org.openmetadata.service.search.SearchIndexUtils.parseFollowers; import static org.openmetadata.service.workflows.searchIndex.ReindexingUtil.ENTITY_TYPE_KEY; import static org.openmetadata.service.workflows.searchIndex.ReindexingUtil.TIMESTAMP_KEY; import static org.openmetadata.service.workflows.searchIndex.ReindexingUtil.getUpdatedStats; @@ -232,9 +231,6 @@ public class DataInsightsEntityEnricherProcessor oCustomProperties.ifPresent( o -> entityMap.put(String.format("%sCustomProperty", entityType), o)); - // Parse Followers: - entityMap.put("followers", parseFollowers(entity.getFollowers())); - return entityMap; } diff --git a/openmetadata-service/src/main/resources/dataInsights/config.json b/openmetadata-service/src/main/resources/dataInsights/config.json index dcf60848984..15d5912d3c0 100644 --- a/openmetadata-service/src/main/resources/dataInsights/config.json +++ b/openmetadata-service/src/main/resources/dataInsights/config.json @@ -9,7 +9,6 @@ "version", "owners", "tags", - "followers", "extension", "votes", "fullyQualifiedName",