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

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Index Management] Only show standard and lookup index mode in create
index modal (#209998)](https://github.com/elastic/kibana/pull/209998)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-07T16:56:39Z","message":"[Index
Management] Only show standard and lookup index mode in create index
modal (#209998)\n\nFixes
https://github.com/elastic/kibana/issues/209889\r\n\r\n##
Summary\r\n\r\nThis PR removes the \"LogsDB\" and \"Time Series\" index
mode options in the\r\ncreate index modal as per the suggestion
in\r\nhttps://github.com/elastic/kibana/issues/209889#issuecomment-2638045561.\r\n\r\nThe
index mode field was added
in\r\nhttps://github.com/elastic/kibana/pull/207413.","sha":"9409a4364b6e0b066ff2b2ed15aabae471a5808f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor","v8.18.0","v9.1.0","v8.19.0"],"title":"[Index
Management] Only show standard and lookup index mode in create index
modal","number":209998,"url":"https://github.com/elastic/kibana/pull/209998","mergeCommit":{"message":"[Index
Management] Only show standard and lookup index mode in create index
modal (#209998)\n\nFixes
https://github.com/elastic/kibana/issues/209889\r\n\r\n##
Summary\r\n\r\nThis PR removes the \"LogsDB\" and \"Time Series\" index
mode options in the\r\ncreate index modal as per the suggestion
in\r\nhttps://github.com/elastic/kibana/issues/209889#issuecomment-2638045561.\r\n\r\nThe
index mode field was added
in\r\nhttps://github.com/elastic/kibana/pull/207413.","sha":"9409a4364b6e0b066ff2b2ed15aabae471a5808f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209998","number":209998,"mergeCommit":{"message":"[Index
Management] Only show standard and lookup index mode in create index
modal (#209998)\n\nFixes
https://github.com/elastic/kibana/issues/209889\r\n\r\n##
Summary\r\n\r\nThis PR removes the \"LogsDB\" and \"Time Series\" index
mode options in the\r\ncreate index modal as per the suggestion
in\r\nhttps://github.com/elastic/kibana/issues/209889#issuecomment-2638045561.\r\n\r\nThe
index mode field was added
in\r\nhttps://github.com/elastic/kibana/pull/207413.","sha":"9409a4364b6e0b066ff2b2ed15aabae471a5808f"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-02-08 05:44:36 +11:00 committed by GitHub
parent 40927246f1
commit 152baf49d6
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],