diff --git a/frontend/src/scenes/pipeline/pipelinePluginConfigurationLogic.tsx b/frontend/src/scenes/pipeline/pipelinePluginConfigurationLogic.tsx index 9e7d981624e25..e679d071fd3d9 100644 --- a/frontend/src/scenes/pipeline/pipelinePluginConfigurationLogic.tsx +++ b/frontend/src/scenes/pipeline/pipelinePluginConfigurationLogic.tsx @@ -31,6 +31,7 @@ import { importAppsLogic } from './importAppsLogic' import { pipelineAccessLogic } from './pipelineAccessLogic' import type { pipelinePluginConfigurationLogicType } from './pipelinePluginConfigurationLogicType' import { pipelineTransformationsLogic } from './transformationsLogic' +import { loadPluginsFromUrl } from './utils' export interface PipelinePluginConfigurationLogicProps { stage: PipelineStage | null @@ -108,7 +109,7 @@ export const pipelinePluginConfigurationLogic = kea = {} + + // TRICKY: We load from the list as the permissions are a not quite right for getting one. + // As we are moving away from plugins opting for this quick fix for now. + if (props.stage === PipelineStage.Transformation) { + plugins = await loadPluginsFromUrl('api/organizations/@current/pipeline_transformations') + } else if (props.stage === PipelineStage.Destination) { + plugins = await loadPluginsFromUrl('api/organizations/@current/pipeline_destinations') + } + + return plugins[props.pluginId] || api.get(`api/organizations/@current/plugins/${props.pluginId}`) }, }, ],