🌊 Streams: Small bug fixes (#217309)

* Preview tables for enrichment and partitioning showed header actions
which were not actually taking effect (now disabled)
* Ingest pipeline was linking to "not found" flyout if data stream
doesn't have a default ingest pipeline
* Index pattern for discover link and histogram was built the wrong way
(shows child streams for classic streams instead of wired streams)
This commit is contained in:
Joe Reuter 2025-04-08 10:58:02 +02:00 committed by GitHub
parent 0f4361d05d
commit 86fab6e2b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -36,6 +36,7 @@ export function PreviewTable({
return columns.map((column) => ({
id: column,
displayAsText: column,
actions: false as false,
initialWidth: columns.length > 10 ? 250 : undefined,
}));
}, [columns]);

View file

@ -42,10 +42,14 @@ export function IngestPipelineDetails({
defaultMessage: 'Name',
})}
</EuiText>
<EuiLink onClick={() => onFlyoutOpen(ingestPipeline?.name || '')}>
{ingestPipeline ? ingestPipeline.name : '-'}
<ManagedBadge meta={ingestPipeline?._meta} />
</EuiLink>
{ingestPipeline ? (
<EuiLink onClick={() => onFlyoutOpen(ingestPipeline.name)}>
{ingestPipeline.name}
<ManagedBadge meta={ingestPipeline?._meta} />
</EuiLink>
) : (
<EuiText size="s">-</EuiText>
)}
</EuiFlexGroup>
</EuiFlexGroup>
</EuiFlexGroup>

View file

@ -11,7 +11,7 @@ export function getIndexPatterns(stream: StreamDefinition | undefined) {
if (!stream) {
return undefined;
}
if (!isUnwiredStreamDefinition(stream)) {
if (isUnwiredStreamDefinition(stream)) {
return [stream.name];
}
const isRoot = stream.name.indexOf('.') === -1;