) => {
- const deploymentUrl = cloud?.deploymentUrl;
- return (
-
-
- {i18n.translate(
- 'xpack.enterpriseSearch.errorConnectingState.cloudErrorMessageLinkText',
- {
- defaultMessage: 'Check your deployment settings',
- }
- )}
-
- ),
- }}
- />
-
- );
-};
-
-const nonCloudError = () => {
- return (
-
- -
- config/kibana.yml,
- }}
- />
-
- -
-
-
- -
-
-
-
-
- );
-};
diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/error_state/index.ts b/x-pack/plugins/enterprise_search/public/applications/shared/error_state/index.ts
deleted file mode 100644
index b8e1783dbe901..0000000000000
--- a/x-pack/plugins/enterprise_search/public/applications/shared/error_state/index.ts
+++ /dev/null
@@ -1,8 +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.
- */
-
-export { ErrorStatePrompt, ErrorStateCallout } from './error_state_prompt';
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.test.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.test.tsx
index d7880b71bec64..67b7469fcfe36 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.test.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.test.tsx
@@ -18,7 +18,6 @@ import { shallow } from 'enzyme';
import { WorkplaceSearchHeaderActions } from './components/layout';
import { SourcesRouter } from './views/content_sources';
import { SourceAdded } from './views/content_sources/components/source_added';
-import { ErrorState } from './views/error_state';
import { NotFound } from './views/not_found';
import { Overview } from './views/overview';
import { RoleMappings } from './views/role_mappings';
@@ -45,26 +44,6 @@ describe('WorkplaceSearch', () => {
expect(wrapper.find(WorkplaceSearchConfigured)).toHaveLength(1);
});
-
- it('renders ErrorState when not on SetupGuide', () => {
- mockUseRouteMatch.mockReturnValue(false);
- setMockValues({ errorConnectingMessage: '502 Bad Gateway' });
-
- const wrapper = shallow();
-
- const errorState = wrapper.find(ErrorState);
- expect(errorState).toHaveLength(1);
- });
-
- it('does not render ErrorState when on SetupGuide', () => {
- mockUseRouteMatch.mockReturnValue(true);
- setMockValues({ errorConnectingMessage: '502 Bad Gateway' });
-
- const wrapper = shallow();
-
- const errorState = wrapper.find(ErrorState);
- expect(errorState).toHaveLength(0);
- });
});
describe('WorkplaceSearchUnconfigured', () => {
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.tsx
index 6213c9bf4ce90..6233208119c44 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/index.tsx
@@ -13,7 +13,6 @@ import { useActions, useValues } from 'kea';
import { Routes, Route } from '@kbn/shared-ux-router';
import { InitialAppData } from '../../../common/types';
-import { HttpLogic } from '../shared/http';
import { KibanaLogic } from '../shared/kibana';
import { AppLogic } from './app_logic';
@@ -37,7 +36,6 @@ import { AccountSettings } from './views/account_settings';
import { ApiKeys } from './views/api_keys';
import { SourcesRouter } from './views/content_sources';
import { SourceAdded } from './views/content_sources/components/source_added';
-import { ErrorState } from './views/error_state';
import { GroupsRouter } from './views/groups';
import { NotFound } from './views/not_found';
import { OAuthAuthorize } from './views/oauth_authorize';
@@ -50,13 +48,9 @@ import { SetupGuide } from './views/setup_guide';
export const WorkplaceSearch: React.FC = (props) => {
const { config } = useValues(KibanaLogic);
- const { errorConnectingMessage } = useValues(HttpLogic);
- const isSetupGuidePath = !!useRouteMatch(SETUP_GUIDE_PATH);
if (!config.host) {
return ;
- } else if (errorConnectingMessage && !isSetupGuidePath) {
- return ;
}
return ;
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.test.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.test.tsx
deleted file mode 100644
index 2c3b49230e394..0000000000000
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.test.tsx
+++ /dev/null
@@ -1,23 +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 from 'react';
-
-import { shallow } from 'enzyme';
-
-import { ErrorStatePrompt } from '../../../shared/error_state';
-
-import { ErrorState } from '.';
-
-describe('ErrorState', () => {
- it('renders', () => {
- const wrapper = shallow();
-
- const prompt = wrapper.find(ErrorStatePrompt);
- expect(prompt).toHaveLength(1);
- });
-});
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.tsx
deleted file mode 100644
index fc93896d931f7..0000000000000
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/error_state.tsx
+++ /dev/null
@@ -1,30 +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 from 'react';
-
-import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template';
-
-import { WORKPLACE_SEARCH_PLUGIN } from '../../../../../common/constants';
-import { ErrorStatePrompt } from '../../../shared/error_state';
-import { SetWorkplaceSearchChrome as SetPageChrome } from '../../../shared/kibana_chrome';
-import { SendWorkplaceSearchTelemetry as SendTelemetry } from '../../../shared/telemetry';
-import { ViewContentHeader } from '../../components/shared/view_content_header';
-
-export const ErrorState: React.FC = () => {
- return (
- <>
-
-
-
-
-
-
-
- >
- );
-};
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/index.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/index.ts
deleted file mode 100644
index 9e27852336849..0000000000000
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/error_state/index.ts
+++ /dev/null
@@ -1,8 +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.
- */
-
-export { ErrorState } from './error_state';
diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json
index fa5b37eb1eb16..2caeeb43300bf 100644
--- a/x-pack/plugins/translations/translations/fr-FR.json
+++ b/x-pack/plugins/translations/translations/fr-FR.json
@@ -18362,17 +18362,6 @@
"xpack.enterpriseSearch.enterpriseSearch.setupGuide.videoAlt": "Premiers pas avec Enterprise Search",
"xpack.enterpriseSearch.enterpriseSearchCard.cta": "En savoir plus",
"xpack.enterpriseSearch.entSearch.productCardDescription": "Applications standalone adaptées à des expériences de recherche plus simples, conviviales et axées sur les entreprises.",
- "xpack.enterpriseSearch.errorConnectingCallout.setupGuideCta": "Consulter le guide de configuration",
- "xpack.enterpriseSearch.errorConnectingCallout.title": "Impossible de se connecter à Enterprise Search",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessage": "Les nœuds Enterprise Search fonctionnent-ils dans votre déploiement cloud ? {deploymentSettingsLink}",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessageLinkText": "Vérifier vos paramètres de déploiement",
- "xpack.enterpriseSearch.errorConnectingState.description1": "Impossible d'établir une connexion à Enterprise Search avec l'URL hôte {enterpriseSearchUrl} en raison de l'erreur suivante :",
- "xpack.enterpriseSearch.errorConnectingState.description2": "Vérifiez que l'URL hôte est correctement configurée dans {configFile}.",
- "xpack.enterpriseSearch.errorConnectingState.description3": "Assurez-vous que le serveur d'Enterprise Search est en état de répondre.",
- "xpack.enterpriseSearch.errorConnectingState.setupGuideCta": "Consulter le guide de configuration",
- "xpack.enterpriseSearch.errorConnectingState.title": "Impossible d'établir une connexion",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuth": "Vérifiez votre authentification utilisateur :",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuthMessage": "Contactez votre administrateur pour installer un mapping des rôles pour vous donner accès à Enterprise Search",
"xpack.enterpriseSearch.exampleConnectorLabel": "Exemple",
"xpack.enterpriseSearch.finishUpStep.euiButton.viewInDiscoverLabel": "Afficher dans Discover",
"xpack.enterpriseSearch.getConnectorTypeBadge.connectorClientBadgeLabel": "Autogéré",
@@ -18789,7 +18778,6 @@
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.searchPlaceholder": "Filtrer les index",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.description": "Certaines données peuvent être inaccessibles à partir de cette application de recherche. Recherchez les opérations en attente ou les erreurs sur les index concernés, ou supprimez les index qui ne doivent plus être utilisés par cette application de recherche.",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.title": "Certains de vos index ne sont pas disponibles.",
- "xpack.enterpriseSearch.searchApplications.searchApplication.notFound.action1": "Revenir aux applications de recherche",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.button": "Afficher les conflits",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.description": "Les conflits de type de champ de schéma peuvent être résolus en navigant directement sur l’index source et en mettant à jour le type de champ du ou des champs conflictuels afin qu’il corresponde à celui des autres index sources.",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.title": "Problèmes potentiels de mapping de champ trouvés",
diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json
index ca9edb8931403..db74ddb89fb66 100644
--- a/x-pack/plugins/translations/translations/ja-JP.json
+++ b/x-pack/plugins/translations/translations/ja-JP.json
@@ -18336,17 +18336,6 @@
"xpack.enterpriseSearch.enterpriseSearch.setupGuide.videoAlt": "エンタープライズ サーチの基本操作",
"xpack.enterpriseSearch.enterpriseSearchCard.cta": "詳細",
"xpack.enterpriseSearch.entSearch.productCardDescription": "よりシンプルで使いやすく、ビジネスに特化した検索エクスペリエンスを提供するスタンドアロンアプリケーション。",
- "xpack.enterpriseSearch.errorConnectingCallout.setupGuideCta": "セットアップガイドを確認",
- "xpack.enterpriseSearch.errorConnectingCallout.title": "エンタープライズ サーチに接続できません",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessage": "クラウドデプロイのエンタープライズ サーチノードが実行中ですか?{deploymentSettingsLink}",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessageLinkText": "デプロイ設定を確認",
- "xpack.enterpriseSearch.errorConnectingState.description1": "次のエラーのため、ホストURL {enterpriseSearchUrl}では、エンタープライズ サーチへの接続を確立できません。",
- "xpack.enterpriseSearch.errorConnectingState.description2": "ホストURLが{configFile}で正しく構成されていることを確認してください。",
- "xpack.enterpriseSearch.errorConnectingState.description3": "エンタープライズ サーチサーバーが応答していることを確認してください。",
- "xpack.enterpriseSearch.errorConnectingState.setupGuideCta": "セットアップガイドを確認",
- "xpack.enterpriseSearch.errorConnectingState.title": "接続できません",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuth": "ユーザー認証を確認してください。",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuthMessage": "管理者に連絡して、エンタープライズ サーチのロールマッピングを設定し、エンタープライズ サーチへのアクセスを許可してください",
"xpack.enterpriseSearch.exampleConnectorLabel": "例",
"xpack.enterpriseSearch.finishUpStep.euiButton.viewInDiscoverLabel": "Discoverに表示",
"xpack.enterpriseSearch.getConnectorTypeBadge.connectorClientBadgeLabel": "セルフマネージド",
@@ -18760,7 +18749,6 @@
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.searchPlaceholder": "インデックスのフィルター",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.description": "この検索アプリケーションからは一部のデータに接続できない場合があります。影響を受けるインデックスで保留中の処理またはエラーがあるかどうかを確認するか、この検索アプリケーションで使用されないインデックスを削除してください。",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.title": "一部のインデックスが使用できません。",
- "xpack.enterpriseSearch.searchApplications.searchApplication.notFound.action1": "検索アプリケーションに戻る",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.button": "不一致を表示",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.description": "スキーマフィールド型の競合は、ソースインデックスに直接移動し、競合するフィールドのフィールド型を他のソースインデックスのフィールド型と一致するように更新することで解決できます。",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.title": "フィールドマッピングに潜在的な問題が見つかりました",
diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json
index d297ff942df01..fa07784f24360 100644
--- a/x-pack/plugins/translations/translations/zh-CN.json
+++ b/x-pack/plugins/translations/translations/zh-CN.json
@@ -17999,17 +17999,6 @@
"xpack.enterpriseSearch.enterpriseSearch.setupGuide.videoAlt": "企业搜索入门",
"xpack.enterpriseSearch.enterpriseSearchCard.cta": "了解详情",
"xpack.enterpriseSearch.entSearch.productCardDescription": "为构建更简单、用户友好且以业务为中心的搜索体验而量身定制的独立应用程序。",
- "xpack.enterpriseSearch.errorConnectingCallout.setupGuideCta": "阅读设置指南",
- "xpack.enterpriseSearch.errorConnectingCallout.title": "无法连接到 Enterprise Search",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessage": "您的云部署是否正在运行 Enterprise Search 节点?{deploymentSettingsLink}",
- "xpack.enterpriseSearch.errorConnectingState.cloudErrorMessageLinkText": "检查您的部署设置",
- "xpack.enterpriseSearch.errorConnectingState.description1": "由于以下错误,我们无法与主机 URL {enterpriseSearchUrl} 的 Enterprise Search 建立连接:",
- "xpack.enterpriseSearch.errorConnectingState.description2": "确保在 {configFile} 中已正确配置主机 URL。",
- "xpack.enterpriseSearch.errorConnectingState.description3": "确认企业搜索服务器响应。",
- "xpack.enterpriseSearch.errorConnectingState.setupGuideCta": "阅读设置指南",
- "xpack.enterpriseSearch.errorConnectingState.title": "无法连接",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuth": "检查您的用户身份验证:",
- "xpack.enterpriseSearch.errorConnectingState.troubleshootAuthMessage": "请联系管理员设置 Enterprise Search 角色映射,为您提供 Enterprise Search 的访问权限",
"xpack.enterpriseSearch.exampleConnectorLabel": "示例",
"xpack.enterpriseSearch.finishUpStep.euiButton.viewInDiscoverLabel": "在 Discover 中查看",
"xpack.enterpriseSearch.getConnectorTypeBadge.connectorClientBadgeLabel": "自管型",
@@ -18425,7 +18414,6 @@
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.searchPlaceholder": "筛选索引",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.description": "可能无法从此搜索应用程序访问某些数据。在受影响的索引上检查任何待处理操作或错误,或移除应不再被此搜索应用程序使用的索引。",
"xpack.enterpriseSearch.searchApplications.searchApplication.indices.someUnknownIndicesCallout.title": "您的某些索引不可用。",
- "xpack.enterpriseSearch.searchApplications.searchApplication.notFound.action1": "返回到搜索应用程序",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.button": "查看冲突",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.description": "可以通过直接导航到源索引并更新冲突字段的字段类型,使其与其他源索引的字段类型相匹配,从而解决架构字段类型冲突。",
"xpack.enterpriseSearch.searchApplications.searchApplication.schema.conflictsCallOut.title": "发现潜在的字段映射问题",