From f71b258929c6c23ae4f40782002ce46d9363040b Mon Sep 17 00:00:00 2001 From: blevine-transcend Date: Fri, 17 Jan 2025 18:13:33 +0000 Subject: [PATCH] aligned pull config with graphql call. realizing i should include all fields, next to do --- .../fetchAllSiloDiscoveryRecommendations.ts | 8 ++++++++ src/graphql/pullTranscendConfiguration.ts | 18 ++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/graphql/fetchAllSiloDiscoveryRecommendations.ts b/src/graphql/fetchAllSiloDiscoveryRecommendations.ts index 9fcf2953..e7ba90f4 100644 --- a/src/graphql/fetchAllSiloDiscoveryRecommendations.ts +++ b/src/graphql/fetchAllSiloDiscoveryRecommendations.ts @@ -14,6 +14,14 @@ export interface SiloDiscoveryRecommendation { /** Title */ title: string; }; + /** The plugin that found this recommendation */ + plugin: { + /** The data silo the plugin belongs to */ + dataSilo: { + /** The internal display title */ + title: string; + }; + }; } const PAGE_SIZE = 30; diff --git a/src/graphql/pullTranscendConfiguration.ts b/src/graphql/pullTranscendConfiguration.ts index 5e2d6f66..0ec30d66 100644 --- a/src/graphql/pullTranscendConfiguration.ts +++ b/src/graphql/pullTranscendConfiguration.ts @@ -777,20 +777,18 @@ export async function pullTranscendConfiguration( result.siloDiscoveryRecommendations = siloDiscoveryRecommendations.map( ({ title, - description, - status, - pluginId, resourceId, - organizationId, - statusLatestRunTime, + lastDiscoveredAt, + suggestedCatalog: { title: suggestedCatalogTitle }, + plugin: { + dataSilo: { title: dataSiloTitle }, + }, }): SiloDiscoveryRecommendationInput => ({ title, - description, - status, - pluginId, resourceId, - organizationId, - statusLatestRunTime, + lastDiscoveredAt, + suggestedCatalog: suggestedCatalogTitle, + plugin: dataSiloTitle, }), ); }