Skip to content

Commit 9409a43

Browse files
authored
[Index Management] Only show standard and lookup index mode in create index modal (#209998)
Fixes #209889 ## Summary This PR removes the "LogsDB" and "Time Series" index mode options in the create index modal as per the suggestion in #209889 (comment). The index mode field was added in #207413.
1 parent 9a06509 commit 9409a43

File tree

1 file changed

+1
-32
lines changed
  • x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/create_index

1 file changed

+1
-32
lines changed

x-pack/platform/plugins/shared/index_management/public/application/sections/home/index_list/create_index/create_index_modal.tsx

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ import {
2525
EuiText,
2626
} from '@elastic/eui';
2727

28-
import {
29-
LOGSDB_INDEX_MODE,
30-
LOOKUP_INDEX_MODE,
31-
STANDARD_INDEX_MODE,
32-
TIME_SERIES_MODE,
33-
} from '../../../../../../common/constants';
28+
import { LOOKUP_INDEX_MODE, STANDARD_INDEX_MODE } from '../../../../../../common/constants';
3429
import { indexModeDescriptions, indexModeLabels } from '../../../../lib/index_mode_labels';
3530
import { createIndex } from '../../../../services';
3631
import { notificationService } from '../../../../services/notification';
@@ -169,32 +164,6 @@ export const CreateIndexModal = ({ closeModal, loadIndices }: CreateIndexModalPr
169164
</Fragment>
170165
),
171166
},
172-
{
173-
value: TIME_SERIES_MODE,
174-
inputDisplay: indexModeLabels[TIME_SERIES_MODE],
175-
'data-test-subj': 'indexModeTimeSeriesOption',
176-
dropdownDisplay: (
177-
<Fragment>
178-
<strong>{indexModeLabels[TIME_SERIES_MODE]}</strong>
179-
<EuiText size="s" color="subdued">
180-
<p>{indexModeDescriptions[TIME_SERIES_MODE]}</p>
181-
</EuiText>
182-
</Fragment>
183-
),
184-
},
185-
{
186-
value: LOGSDB_INDEX_MODE,
187-
inputDisplay: indexModeLabels[LOGSDB_INDEX_MODE],
188-
'data-test-subj': 'indexModeLogsdbOption',
189-
dropdownDisplay: (
190-
<Fragment>
191-
<strong>{indexModeLabels[LOGSDB_INDEX_MODE]}</strong>
192-
<EuiText size="s" color="subdued">
193-
<p>{indexModeDescriptions[LOGSDB_INDEX_MODE]}</p>
194-
</EuiText>
195-
</Fragment>
196-
),
197-
},
198167
{
199168
value: LOOKUP_INDEX_MODE,
200169
inputDisplay: indexModeLabels[LOOKUP_INDEX_MODE],

0 commit comments

Comments
 (0)