Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export const OBSERVABILITY_AI_ASSISTANT_SEARCH_CONNECTOR_INDEX_PATTERN =
'observability:aiAssistantSearchConnectorIndexPattern';
export const OBSERVABILITY_SEARCH_EXCLUDED_DATA_TIERS = 'observability:searchExcludedDataTiers';
export const OBSERVABILITY_ENABLE_STREAMS_UI = 'observability:enableStreamsUI';
export const OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS =
'observability:streamsEnableSignificantEvents';

// Reporting settings
export const XPACK_REPORTING_CUSTOM_PDF_LOGO_ID = 'xpackReporting:customPdfLogo';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const OBSERVABILITY_PROJECT_SETTINGS = [
settings.OBSERVABILITY_ENTITY_CENTRIC_EXPERIENCE,
settings.OBSERVABILITY_LOGS_DATA_ACCESS_LOG_SOURCES_ID,
settings.OBSERVABILITY_ENABLE_STREAMS_UI,
settings.OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS,
];

export const OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,4 +669,10 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
description: 'Enable Streams UI.',
},
},
'observability:streamsEnableSignificantEvents': {
type: 'boolean',
_meta: {
description: 'Enable significant events in streams.',
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,5 @@ export interface UsageStats {
'securitySolution:maxUnassociatedNotes': number;
'observability:searchExcludedDataTiers': string[];
'observability:enableStreamsUI': boolean;
'observability:streamsEnableSignificantEvents': boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11546,6 +11546,12 @@
"_meta": {
"description": "Enable Streams UI."
}
},
"observability:streamsEnableSignificantEvents": {
"type": "boolean",
"_meta": {
"description": "Enable significant events in streams."
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test.describe(
page,
pageObjects,
perfTracker,
config,
}) => {
perfTracker.captureBundleResponses(cdp); // Start tracking

Expand Down Expand Up @@ -75,6 +76,7 @@ test.describe(
'lens',
'maps',
'unifiedHistogram',
...(config.projectType === 'security' ? ['securitySolution'] : []),
'unifiedSearch',
]);
// Validate individual plugin bundle sizes
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const ruleTypes: string[] = [
'xpack.ml.anomaly_detection_alert',
'xpack.ml.anomaly_detection_jobs_health',
'slo.rules.burnRate',
'streams.rules.esql',
'observability.rules.custom_threshold',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.tlsCertificate',
Expand Down
8 changes: 1 addition & 7 deletions x-pack/platform/plugins/shared/streams/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@

import { schema, TypeOf } from '@kbn/config-schema';

export const configSchema = schema.object({
experimental: schema.maybe(
schema.object({
significantEventsEnabled: schema.maybe(schema.boolean({ defaultValue: false })),
})
),
});
export const configSchema = schema.object({});

export type StreamsConfig = TypeOf<typeof configSchema>;

Expand Down
34 changes: 34 additions & 0 deletions x-pack/platform/plugins/shared/streams/server/feature_flags.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { schema } from '@kbn/config-schema';
import { UiSettingsParams } from '@kbn/core-ui-settings-common';
import { i18n } from '@kbn/i18n';
import { OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS } from '@kbn/management-settings-ids';

const technicalPreviewLabel = i18n.translate('xpack.streams.technicalPreviewSettingLabel', {
defaultMessage: 'Technical Preview',
});

export const featureFlagUiSettings: Record<string, UiSettingsParams> = {
[OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS]: {
category: ['observability'],
name: i18n.translate('xpack.streams.significantEventsSettingsName', {
defaultMessage: 'Streams significant events',
}),
value: false,
description: i18n.translate('xpack.streams.significantEventsSettingsDescription', {
defaultMessage: '{technicalPreviewLabel} Enable streams significant events.',

values: { technicalPreviewLabel: `<em>[${technicalPreviewLabel}]</em>` },
}),
type: 'boolean',
schema: schema.boolean(),
requiresPageReload: true,
solution: 'oblt',
},
};
Loading