[Index Management] Only show standard and lookup index mode in create index modal (#209998)

Fixes https://github.com/elastic/kibana/issues/209889

## Summary

This PR removes the "LogsDB" and "Time Series" index mode options in the
create index modal as per the suggestion in
https://github.com/elastic/kibana/issues/209889#issuecomment-2638045561.

The index mode field was added in
https://github.com/elastic/kibana/pull/207413.
This commit is contained in:
Elena Stoeva 2025-02-07 16:56:39 +00:00 committed by GitHub
parent 9a06509972
commit 9409a4364b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,12 +25,7 @@ import {
EuiText,
} from '@elastic/eui';
import {
LOGSDB_INDEX_MODE,
LOOKUP_INDEX_MODE,
STANDARD_INDEX_MODE,
TIME_SERIES_MODE,
} from '../../../../../../common/constants';
import { LOOKUP_INDEX_MODE, STANDARD_INDEX_MODE } from '../../../../../../common/constants';
import { indexModeDescriptions, indexModeLabels } from '../../../../lib/index_mode_labels';
import { createIndex } from '../../../../services';
import { notificationService } from '../../../../services/notification';
@ -169,32 +164,6 @@ export const CreateIndexModal = ({ closeModal, loadIndices }: CreateIndexModalPr
</Fragment>
),
},
{
value: TIME_SERIES_MODE,
inputDisplay: indexModeLabels[TIME_SERIES_MODE],
'data-test-subj': 'indexModeTimeSeriesOption',
dropdownDisplay: (
<Fragment>
<strong>{indexModeLabels[TIME_SERIES_MODE]}</strong>
<EuiText size="s" color="subdued">
<p>{indexModeDescriptions[TIME_SERIES_MODE]}</p>
</EuiText>
</Fragment>
),
},
{
value: LOGSDB_INDEX_MODE,
inputDisplay: indexModeLabels[LOGSDB_INDEX_MODE],
'data-test-subj': 'indexModeLogsdbOption',
dropdownDisplay: (
<Fragment>
<strong>{indexModeLabels[LOGSDB_INDEX_MODE]}</strong>
<EuiText size="s" color="subdued">
<p>{indexModeDescriptions[LOGSDB_INDEX_MODE]}</p>
</EuiText>
</Fragment>
),
},
{
value: LOOKUP_INDEX_MODE,
inputDisplay: indexModeLabels[LOOKUP_INDEX_MODE],