[8.x] [Search][Ent Search deprecation] Removing indices stats tiles (#193968) (#196103)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Search][Ent Search deprecation] Removing indices stats tiles
(#193968)](https://github.com/elastic/kibana/pull/193968)

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

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

<!--BACKPORT [{"author":{"name":"José Luis
González","email":"joseluisgj@gmail.com"},"sourceCommit":{"committedDate":"2024-10-14T10:49:24Z","message":"[Search][Ent
Search deprecation] Removing indices stats tiles (#193968)\n\n##
Summary\r\n\r\nRemoving the indices stats tiles as requested and agreed
as a part of\r\nEnt Search deprecation
here:\r\nhttps://github.com/elastic/search-team/issues/8231\r\n\r\n![CleanShot
2024-09-25 at 12
54\r\n16@2x](https://github.com/user-attachments/assets/bd8ee089-2bee-4beb-927b-e937975d8dbc)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f4a84795b244d158ff3ecc8f85ed2d00c6ded8c5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:EnterpriseSearch","backport:prev-minor","backport:prev-major","v8.16.0"],"title":"[Search][Ent
Search deprecation] Removing indices stats
tiles","number":193968,"url":"https://github.com/elastic/kibana/pull/193968","mergeCommit":{"message":"[Search][Ent
Search deprecation] Removing indices stats tiles (#193968)\n\n##
Summary\r\n\r\nRemoving the indices stats tiles as requested and agreed
as a part of\r\nEnt Search deprecation
here:\r\nhttps://github.com/elastic/search-team/issues/8231\r\n\r\n![CleanShot
2024-09-25 at 12
54\r\n16@2x](https://github.com/user-attachments/assets/bd8ee089-2bee-4beb-927b-e937975d8dbc)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f4a84795b244d158ff3ecc8f85ed2d00c6ded8c5"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193968","number":193968,"mergeCommit":{"message":"[Search][Ent
Search deprecation] Removing indices stats tiles (#193968)\n\n##
Summary\r\n\r\nRemoving the indices stats tiles as requested and agreed
as a part of\r\nEnt Search deprecation
here:\r\nhttps://github.com/elastic/search-team/issues/8231\r\n\r\n![CleanShot
2024-09-25 at 12
54\r\n16@2x](https://github.com/user-attachments/assets/bd8ee089-2bee-4beb-927b-e937975d8dbc)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"f4a84795b244d158ff3ecc8f85ed2d00c6ded8c5"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: José Luis González <joseluisgj@gmail.com>
This commit is contained in:
Kibana Machine 2024-10-15 00:16:12 +11:00 committed by GitHub
parent 742ae89748
commit 3bc6814fd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 173 deletions

View file

@ -1,148 +0,0 @@
/*
* 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 React, { useEffect } from 'react';
import { useActions, useValues } from 'kea';
import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiStat } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { Status } from '../../../../../common/types/api';
import { FetchSyncJobsStatsApiLogic } from '../../api/stats/fetch_sync_jobs_stats_api_logic';
export const IndicesStats: React.FC = () => {
const { makeRequest } = useActions(FetchSyncJobsStatsApiLogic);
const { data, status } = useValues(FetchSyncJobsStatsApiLogic);
const isLoading = status === Status.LOADING;
useEffect(() => {
makeRequest({});
}, []);
const UNKNOWN_STRING = i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.unknown',
{ defaultMessage: 'Unknown' }
);
return (
<EuiFlexGroup direction="column">
<EuiFlexItem>
<EuiFlexGroup>
<EuiFlexItem>
<EuiPanel
color={data?.connected ? 'success' : 'subdued'}
hasShadow={false}
paddingSize="l"
>
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.connectedMethods',
{
defaultMessage: 'Connected ingest methods',
}
)}
isLoading={isLoading}
title={data?.connected ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
<EuiFlexItem>
<EuiPanel
color={data?.incomplete ? 'warning' : 'subdued'}
hasShadow={false}
paddingSize="l"
>
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.incompleteMethods',
{
defaultMessage: 'Incomplete ingest methods',
}
)}
isLoading={isLoading}
title={data?.incomplete ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexGroup>
<EuiFlexItem>
<EuiPanel color="subdued" hasShadow={false} paddingSize="l">
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.runningSyncs',
{
defaultMessage: 'Running syncs',
}
)}
isLoading={isLoading}
title={data?.in_progress ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
<EuiFlexItem>
<EuiPanel color={data?.idle ? 'warning' : 'subdued'} hasShadow={false} paddingSize="l">
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.longRunningSyncs',
{
defaultMessage: 'Idle syncs',
}
)}
isLoading={isLoading}
title={data?.idle ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
<EuiFlexItem>
<EuiPanel
color={data?.orphaned_jobs ? 'warning' : 'subdued'}
hasShadow={false}
paddingSize="l"
>
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.orphanedSyncs',
{
defaultMessage: 'Orphaned syncs',
}
)}
isLoading={isLoading}
title={data?.orphaned_jobs ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
<EuiFlexItem>
<EuiPanel color={data?.errors ? 'danger' : 'subdued'} hasShadow={false} paddingSize="l">
<EuiStat
titleSize="m"
description={i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.jobStats.errorSyncs',
{
defaultMessage: 'Syncs errors',
}
)}
isLoading={isLoading}
title={data?.errors ?? UNKNOWN_STRING}
/>
</EuiPanel>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
</EuiFlexGroup>
);
};

View file

@ -38,7 +38,6 @@ import { DefaultSettingsFlyout } from '../settings/default_settings_flyout';
import { DeleteIndexModal } from './delete_index_modal';
import { IndicesLogic } from './indices_logic';
import { IndicesStats } from './indices_stats';
import { IndicesTable } from './indices_table';
import './search_indices.scss';
@ -176,9 +175,6 @@ export const SearchIndices: React.FC = () => {
)}
{!hasNoIndices ? (
<EuiFlexGroup direction="column">
<EuiFlexItem>
<IndicesStats />
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false}>

View file

@ -17027,13 +17027,6 @@
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.idle.label": "Inactif",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.incomplete.label": "Incomplet",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.syncError.label": "Échec de la synchronisation",
"xpack.enterpriseSearch.content.searchIndices.jobStats.connectedMethods": "Méthodes d'ingestion connectées",
"xpack.enterpriseSearch.content.searchIndices.jobStats.errorSyncs": "Erreurs de synchronisation",
"xpack.enterpriseSearch.content.searchIndices.jobStats.incompleteMethods": "Méthodes d'ingestion incomplètes",
"xpack.enterpriseSearch.content.searchIndices.jobStats.longRunningSyncs": "Synchronisations inactives",
"xpack.enterpriseSearch.content.searchIndices.jobStats.orphanedSyncs": "Synchronisations orphelines",
"xpack.enterpriseSearch.content.searchIndices.jobStats.runningSyncs": "Synchronisations en cours d'exécution",
"xpack.enterpriseSearch.content.searchIndices.jobStats.unknown": "Inconnu",
"xpack.enterpriseSearch.content.searchIndices.name.columnTitle": "Nom de l'index",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.breadcrumb": "Index Elasticsearch",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.includeHidden.label": "Afficher les index masqués",

View file

@ -16773,13 +16773,6 @@
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.idle.label": "アイドル",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.incomplete.label": "未完了",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.syncError.label": "同期失敗",
"xpack.enterpriseSearch.content.searchIndices.jobStats.connectedMethods": "接続されたインジェストメソッド",
"xpack.enterpriseSearch.content.searchIndices.jobStats.errorSyncs": "同期エラー",
"xpack.enterpriseSearch.content.searchIndices.jobStats.incompleteMethods": "不完全なインジェストメソッド",
"xpack.enterpriseSearch.content.searchIndices.jobStats.longRunningSyncs": "アイドル同期",
"xpack.enterpriseSearch.content.searchIndices.jobStats.orphanedSyncs": "孤立した同期",
"xpack.enterpriseSearch.content.searchIndices.jobStats.runningSyncs": "実行中の同期",
"xpack.enterpriseSearch.content.searchIndices.jobStats.unknown": "不明",
"xpack.enterpriseSearch.content.searchIndices.name.columnTitle": "インデックス名",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.breadcrumb": "デフォルトのインデックス",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.includeHidden.label": "非表示のインデックスを表示",

View file

@ -16802,13 +16802,6 @@
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.idle.label": "空闲",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.incomplete.label": "不完整",
"xpack.enterpriseSearch.content.searchIndices.ingestionStatus.syncError.label": "同步失败",
"xpack.enterpriseSearch.content.searchIndices.jobStats.connectedMethods": "已连接采集方法",
"xpack.enterpriseSearch.content.searchIndices.jobStats.errorSyncs": "同步错误",
"xpack.enterpriseSearch.content.searchIndices.jobStats.incompleteMethods": "未完成的采集方法",
"xpack.enterpriseSearch.content.searchIndices.jobStats.longRunningSyncs": "闲置同步",
"xpack.enterpriseSearch.content.searchIndices.jobStats.orphanedSyncs": "孤立同步",
"xpack.enterpriseSearch.content.searchIndices.jobStats.runningSyncs": "正在运行同步",
"xpack.enterpriseSearch.content.searchIndices.jobStats.unknown": "未知",
"xpack.enterpriseSearch.content.searchIndices.name.columnTitle": "索引名称",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.breadcrumb": "Elasticsearch 索引",
"xpack.enterpriseSearch.content.searchIndices.searchIndices.includeHidden.label": "显示隐藏的索引",