Skip to content

Commit 8401664

Browse files
[Significant events] Rename setting to Discovery
1 parent e151b4a commit 8401664

File tree

10 files changed

+35
-35
lines changed

10 files changed

+35
-35
lines changed

src/platform/packages/shared/kbn-management/settings/setting_ids/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export const AI_ANONYMIZATION_SETTINGS = 'ai:anonymizationSettings';
141141
export const OBSERVABILITY_SEARCH_EXCLUDED_DATA_TIERS = 'observability:searchExcludedDataTiers';
142142
export const OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS =
143143
'observability:streamsEnableSignificantEvents';
144-
export const OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER =
145-
'observability:streamsEnableSignificantEventsAnalyzer';
144+
export const OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY =
145+
'observability:streamsEnableSignificantEventsDiscovery';
146146
export const OBSERVABILITY_STREAMS_ENABLE_GROUP_STREAMS = 'observability:streamsEnableGroupStreams';
147147
export const OBSERVABILITY_STREAMS_ENABLE_CONTENT_PACKS = 'observability:streamsEnableContentPacks';
148148
export const OBSERVABILITY_STREAMS_ENABLE_ATTACHMENTS = 'observability:streamsEnableAttachments';

src/platform/packages/shared/serverless/settings/observability_project/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const OBSERVABILITY_PROJECT_SETTINGS = [
3232

3333
export const OBSERVABILITY_STREAMS_TIERED_PROJECT_SETTINGS = [
3434
settings.OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS,
35-
settings.OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER,
35+
settings.OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY,
3636
];
3737

3838
export const OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS = [

src/platform/plugins/private/kibana_usage_collection/server/collectors/management/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,10 +700,10 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
700700
description: 'Enable significant events in streams.',
701701
},
702702
},
703-
'observability:streamsEnableSignificantEventsAnalyzer': {
703+
'observability:streamsEnableSignificantEventsDiscovery': {
704704
type: 'boolean',
705705
_meta: {
706-
description: 'Enable the Significant events analyzer in Streams.',
706+
description: 'Enable Significant events discovery in Streams.',
707707
},
708708
},
709709
'observability:streamsEnableGroupStreams': {

src/platform/plugins/private/kibana_usage_collection/server/collectors/management/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export interface UsageStats {
182182
'cases:incrementalIdDisplay:enabled': boolean;
183183
'observability:enableDiagnosticMode': boolean;
184184
'observability:streamsEnableSignificantEvents': boolean;
185-
'observability:streamsEnableSignificantEventsAnalyzer': boolean;
185+
'observability:streamsEnableSignificantEventsDiscovery': boolean;
186186
'genAiSettings:defaultAIConnector': string;
187187
'genAiSettings:defaultAIConnectorOnly': boolean;
188188
'observability:streamsEnableGroupStreams': boolean;

src/platform/plugins/shared/telemetry/schema/oss_platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11084,10 +11084,10 @@
1108411084
"description": "Enable significant events in streams."
1108511085
}
1108611086
},
11087-
"observability:streamsEnableSignificantEventsAnalyzer": {
11087+
"observability:streamsEnableSignificantEventsDiscovery": {
1108811088
"type": "boolean",
1108911089
"_meta": {
11090-
"description": "Enable the Significant events analyzer in Streams."
11090+
"description": "Enable Significant events discovery in Streams."
1109111091
}
1109211092
},
1109311093
"observability:streamsEnableGroupStreams": {

x-pack/platform/plugins/shared/streams/server/feature_flags.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { CoreSetup, Logger } from '@kbn/core/server';
1010
import { i18n } from '@kbn/i18n';
1111
import {
1212
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS,
13-
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER,
13+
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY,
1414
OBSERVABILITY_STREAMS_ENABLE_GROUP_STREAMS,
1515
OBSERVABILITY_STREAMS_ENABLE_CONTENT_PACKS,
1616
OBSERVABILITY_STREAMS_ENABLE_ATTACHMENTS,
@@ -45,16 +45,16 @@ export function registerFeatureFlags(
4545
});
4646

4747
core.uiSettings.register({
48-
[OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER]: {
48+
[OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY]: {
4949
category: ['observability'],
50-
name: i18n.translate('xpack.streams.significantEventsAnalyzerSettingsName', {
51-
defaultMessage: 'Streams significant events analyzer',
50+
name: i18n.translate('xpack.streams.significantEventsDiscoverySettingsName', {
51+
defaultMessage: 'Streams significant events discovery',
5252
}) as string,
5353
value: false,
5454
description: i18n.translate(
55-
'xpack.streams.significantEventsAnalyzerSettingsDescription',
55+
'xpack.streams.significantEventsDiscoverySettingsDescription',
5656
{
57-
defaultMessage: 'Enable streams significant events analyzer.',
57+
defaultMessage: 'Enable streams significant events discovery.',
5858
}
5959
),
6060
type: 'boolean',
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ import { StreamsAppPageTemplate } from '../streams_app_page_template';
1515
import { FeedbackButton } from '../feedback_button';
1616
import { useStreamsAppBreadcrumbs } from '../../hooks/use_streams_app_breadcrumbs';
1717

18-
export function SignificantEventsAnalyzerPage() {
18+
export function SignificantEventsDiscoveryPage() {
1919
const {
20-
features: { significantEventsAnalyzer },
20+
features: { significantEventsDiscovery },
2121
} = useStreamsPrivileges();
2222
const { euiTheme } = useEuiTheme();
2323

2424
useStreamsAppBreadcrumbs(() => {
2525
return [
2626
{
27-
title: i18n.translate('xpack.streams.significantEventsAnalyzer.breadcrumbTitle', {
28-
defaultMessage: 'Significant events analyzer',
27+
title: i18n.translate('xpack.streams.significantEventsDiscovery.breadcrumbTitle', {
28+
defaultMessage: 'Significant events Discovery',
2929
}),
30-
path: '/_analyzer',
30+
path: '/_discovery',
3131
},
3232
];
3333
}, []);
3434

35-
if (significantEventsAnalyzer === undefined) {
35+
if (significantEventsDiscovery === undefined) {
3636
// Waiting to load license
3737
return <EuiLoadingElastic size="xxl" />;
3838
}
3939

40-
if (!significantEventsAnalyzer.available || !significantEventsAnalyzer.enabled) {
40+
if (!significantEventsDiscovery.available || !significantEventsDiscovery.enabled) {
4141
return <RedirectTo path="/" />;
4242
}
4343

@@ -57,8 +57,8 @@ export function SignificantEventsAnalyzerPage() {
5757
>
5858
<EuiFlexItem>
5959
<EuiFlexGroup alignItems="center" gutterSize="m">
60-
{i18n.translate('xpack.streams.significantEventsAnalyzer.pageHeaderTitle', {
61-
defaultMessage: 'Significant events analyzer',
60+
{i18n.translate('xpack.streams.significantEventsDiscovery.pageHeaderTitle', {
61+
defaultMessage: 'Significant events Discovery',
6262
})}
6363
</EuiFlexGroup>
6464
</EuiFlexItem>
@@ -67,7 +67,7 @@ export function SignificantEventsAnalyzerPage() {
6767
}
6868
/>
6969
<StreamsAppPageTemplate.Body grow>
70-
{/* Significant events analyzer content goes here */}
70+
{/* Significant events discovery content goes here */}
7171
</StreamsAppPageTemplate.Body>
7272
</>
7373
);

x-pack/platform/plugins/shared/streams_app/public/hooks/use_streams_privileges.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
OBSERVABILITY_STREAMS_ENABLE_GROUP_STREAMS,
1111
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS,
1212
OBSERVABILITY_STREAMS_ENABLE_ATTACHMENTS,
13-
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER,
13+
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY,
1414
} from '@kbn/management-settings-ids';
1515
import { STREAMS_TIERED_SIGNIFICANT_EVENT_FEATURE } from '@kbn/streams-plugin/common';
1616
import type { STREAMS_UI_PRIVILEGES } from '@kbn/streams-plugin/public';
@@ -25,7 +25,7 @@ export interface StreamsFeatures {
2525
available: boolean;
2626
enabled: boolean;
2727
};
28-
significantEventsAnalyzer?: {
28+
significantEventsDiscovery?: {
2929
available: boolean;
3030
enabled: boolean;
3131
};
@@ -71,8 +71,8 @@ export function useStreamsPrivileges(): StreamsPrivileges {
7171
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS,
7272
false // Default to false if the setting is not defined or not available
7373
);
74-
const significantEventsAnalyzerEnabled = uiSettings.get<boolean>(
75-
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER,
74+
const significantEventsDiscoveryEnabled = uiSettings.get<boolean>(
75+
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY,
7676
false
7777
);
7878

@@ -97,8 +97,8 @@ export function useStreamsPrivileges(): StreamsPrivileges {
9797
enabled: significantEventsEnabled,
9898
available: license.hasAtLeast('enterprise') && significantEventsAvailableForTier,
9999
},
100-
significantEventsAnalyzer: license && {
101-
enabled: significantEventsAnalyzerEnabled,
100+
significantEventsDiscovery: license && {
101+
enabled: significantEventsDiscoveryEnabled,
102102
available: license.hasAtLeast('enterprise') && significantEventsAvailableForTier,
103103
},
104104
groupStreams: {

x-pack/platform/plugins/shared/streams_app/public/routes/config.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { RedirectTo } from '../components/redirect_to';
1515
import { StreamListView } from '../components/stream_list_view';
1616
import { StreamDetailRoot } from '../components/stream_root';
1717
import { StreamDetailManagement } from '../components/data_management/stream_detail_management';
18-
import { SignificantEventsAnalyzerPage } from '../components/significant_events_analyzer/page';
18+
import { SignificantEventsDiscoveryPage } from '../components/significant_events_discovery/page';
1919

2020
/**
2121
* The array of route definitions to be used when the application
@@ -39,8 +39,8 @@ const streamsAppRoutes = {
3939
'/': {
4040
element: <StreamListView />,
4141
},
42-
'/_analyzer': {
43-
element: <SignificantEventsAnalyzerPage />,
42+
'/_discovery': {
43+
element: <SignificantEventsDiscoveryPage />,
4444
},
4545
'/{key}': {
4646
element: (

x-pack/solutions/observability/test/serverless/functional/test_suites/advanced_settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { isEditorFieldSetting } from '@kbn/test-suites-xpack-platform/serverless
1111
import {
1212
OBSERVABILITY_STREAMS_ENABLE_GROUP_STREAMS,
1313
OBSERVABILITY_STREAMS_ENABLE_ATTACHMENTS,
14-
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER,
14+
OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY,
1515
} from '@kbn/management-settings-ids';
1616
import type { FtrProviderContext } from '../ftr_provider_context';
1717

@@ -46,7 +46,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
4646
if (
4747
settingId === OBSERVABILITY_STREAMS_ENABLE_GROUP_STREAMS ||
4848
settingId === OBSERVABILITY_STREAMS_ENABLE_ATTACHMENTS ||
49-
settingId === OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_ANALYZER
49+
settingId === OBSERVABILITY_STREAMS_ENABLE_SIGNIFICANT_EVENTS_DISCOVERY
5050
) {
5151
continue;
5252
}

0 commit comments

Comments
 (0)