Skip to content

Commit

Permalink
aligned pull config with graphql call. realizing i should include all…
Browse files Browse the repository at this point in the history
… fields, next to do
  • Loading branch information
blevine-transcend committed Jan 17, 2025
1 parent 1fbb140 commit f71b258
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
8 changes: 8 additions & 0 deletions src/graphql/fetchAllSiloDiscoveryRecommendations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 8 additions & 10 deletions src/graphql/pullTranscendConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
);
}
Expand Down

0 comments on commit f71b258

Please sign in to comment.