From 5943713962bebffb3c407a6c968d1175abce480f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Wed, 25 Sep 2024 12:48:13 +0200 Subject: [PATCH 1/4] Removing indices stats tiles --- .../components/search_indices/search_indices.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx index 218f2bcc550b4..1c12720365d06 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx @@ -38,7 +38,7 @@ import { DefaultSettingsFlyout } from '../settings/default_settings_flyout'; import { DeleteIndexModal } from './delete_index_modal'; import { IndicesLogic } from './indices_logic'; -import { IndicesStats } from './indices_stats'; +// import { IndicesStats } from './indices_stats'; import { IndicesTable } from './indices_table'; import './search_indices.scss'; @@ -176,9 +176,7 @@ export const SearchIndices: React.FC = () => { )} {!hasNoIndices ? ( - - - + {/* */} From 51d7e75c440e41c11d6334e82e3fd6fb79b15741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Wed, 25 Sep 2024 13:00:00 +0200 Subject: [PATCH 2/4] Removing from code --- .../components/search_indices/search_indices.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx index 1c12720365d06..dece1b4beb2f7 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/search_indices.tsx @@ -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,7 +175,6 @@ export const SearchIndices: React.FC = () => { )} {!hasNoIndices ? ( - {/* */} From 936e6abed723e6f3c1eb378dfaba2a850db8fd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Thu, 3 Oct 2024 09:54:43 +0200 Subject: [PATCH 3/4] Removing indices_stats component --- .../search_indices/indices_stats.tsx | 148 ------------------ 1 file changed, 148 deletions(-) delete mode 100644 x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/indices_stats.tsx diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/indices_stats.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/indices_stats.tsx deleted file mode 100644 index 1d5ca88112f4e..0000000000000 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_indices/indices_stats.tsx +++ /dev/null @@ -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 ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; From cdc407aca9631d0c4c9bf63601cce77dbf5999c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Thu, 3 Oct 2024 10:14:15 +0200 Subject: [PATCH 4/4] i18n fixing no longer used messages --- x-pack/plugins/translations/translations/fr-FR.json | 7 ------- x-pack/plugins/translations/translations/ja-JP.json | 7 ------- x-pack/plugins/translations/translations/zh-CN.json | 7 ------- 3 files changed, 21 deletions(-) diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index a14f2ce6d398d..0d9edb2a96a38 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -17000,13 +17000,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", diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 5184bf3718ef6..3fb8818679563 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -16746,13 +16746,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": "非表示のインデックスを表示", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index dcc0af6a008c3..8c84d05294c1f 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -16775,13 +16775,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": "显示隐藏的索引",