Skip to content

Commit

Permalink
[Fleet] Do not show processors and streams editor for input only pkgs (
Browse files Browse the repository at this point in the history
…#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 <[email protected]>
  • Loading branch information
hop-dev and kibanamachine authored Nov 18, 2022
1 parent 5a2c45e commit babfb01
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const PackagePolicyInputStreamConfig = memo<Props>(
!!packagePolicyInputStream.id &&
packagePolicyInputStream.id === defaultDataStreamId;
const isPackagePolicyEdit = !!packagePolicyId;
const isInputOnlyPackage = packageInfo.type === 'input';

useEffect(() => {
if (isDefaultDatstream && containerRef.current) {
Expand Down Expand Up @@ -317,8 +318,8 @@ export const PackagePolicyInputStreamConfig = memo<Props>(
</EuiFlexItem>
);
})}
{/* Only show datastream pipelines and mappings on edit */}
{isPackagePolicyEdit && (
{/* Only show datastream pipelines and mappings on edit and not for input packages*/}
{isPackagePolicyEdit && !isInputOnlyPackage && (
<>
<EuiFlexItem>
<PackagePolicyEditorDatastreamPipelines
Expand Down

0 comments on commit babfb01

Please sign in to comment.