From babfb019f17ce7a152b8bdb72ca3adb488e8f295 Mon Sep 17 00:00:00 2001 From: Mark Hopkin Date: Fri, 18 Nov 2022 11:15:46 +0000 Subject: [PATCH] [Fleet] Do not show processors and streams editor for input only pkgs (#145617) A temporary measure until #145414 is resolved. Title says it all! We Don't currently create the pipelines and templates for input only packages at the moment (see #145529 ) so hiding this part if the UI. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../steps/components/package_policy_input_stream.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx index 2e5f98c8359e7..716636bbb24bf 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/components/package_policy_input_stream.tsx @@ -83,6 +83,7 @@ export const PackagePolicyInputStreamConfig = memo( !!packagePolicyInputStream.id && packagePolicyInputStream.id === defaultDataStreamId; const isPackagePolicyEdit = !!packagePolicyId; + const isInputOnlyPackage = packageInfo.type === 'input'; useEffect(() => { if (isDefaultDatstream && containerRef.current) { @@ -317,8 +318,8 @@ export const PackagePolicyInputStreamConfig = memo( ); })} - {/* Only show datastream pipelines and mappings on edit */} - {isPackagePolicyEdit && ( + {/* Only show datastream pipelines and mappings on edit and not for input packages*/} + {isPackagePolicyEdit && !isInputOnlyPackage && ( <>