diff --git a/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts b/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts
index 17b6cf502280a..c9d341c708965 100644
--- a/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts
+++ b/x-pack/plugins/observability_solution/inventory/e2e/cypress/e2e/home.cy.ts
@@ -121,35 +121,6 @@ describe('Home page', () => {
cy.url().should('include', '/app/metrics/detail/host/server1');
});
- it('Navigates to discover with default filter', () => {
- cy.intercept('GET', '/internal/entities/managed/enablement', {
- fixture: 'eem_enabled.json',
- }).as('getEEMStatus');
- cy.visitKibana('/app/inventory');
- cy.wait('@getEEMStatus');
- cy.contains('Open in discover').click();
- cy.url().should(
- 'include',
- "query:(language:kuery,query:'entity.definition_id%20:%20builtin*"
- );
- });
-
- it('Navigates to discover with kuery filter', () => {
- cy.intercept('GET', '/internal/entities/managed/enablement', {
- fixture: 'eem_enabled.json',
- }).as('getEEMStatus');
- cy.visitKibana('/app/inventory');
- cy.wait('@getEEMStatus');
- cy.getByTestSubj('queryInput').type('service.name : foo');
-
- cy.contains('Update').click();
- cy.contains('Open in discover').click();
- cy.url().should(
- 'include',
- "query:'service.name%20:%20foo%20AND%20entity.definition_id%20:%20builtin*'"
- );
- });
-
it('Navigates to infra when clicking on a container type entity', () => {
cy.intercept('GET', '/internal/entities/managed/enablement', {
fixture: 'eem_enabled.json',
diff --git a/x-pack/plugins/observability_solution/inventory/public/components/search_bar/discover_button.tsx b/x-pack/plugins/observability_solution/inventory/public/components/search_bar/discover_button.tsx
deleted file mode 100644
index 13477d63e5f82..0000000000000
--- a/x-pack/plugins/observability_solution/inventory/public/components/search_bar/discover_button.tsx
+++ /dev/null
@@ -1,35 +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 { EuiButton } from '@elastic/eui';
-import { DataView } from '@kbn/data-views-plugin/public';
-import { i18n } from '@kbn/i18n';
-import React from 'react';
-import { useDiscoverRedirect } from '../../hooks/use_discover_redirect';
-
-export function DiscoverButton({ dataView }: { dataView: DataView }) {
- const { getDiscoverRedirectUrl } = useDiscoverRedirect();
-
- const discoverLink = getDiscoverRedirectUrl();
-
- if (!discoverLink) {
- return null;
- }
-
- return (
-
- {i18n.translate('xpack.inventory.searchBar.discoverButton', {
- defaultMessage: 'Open in discover',
- })}
-
- );
-}
diff --git a/x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx b/x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx
index d1ccfd3f358e3..3464c5749dbc3 100644
--- a/x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx
+++ b/x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx
@@ -4,7 +4,6 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
-import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import type { Query } from '@kbn/es-query';
import { i18n } from '@kbn/i18n';
import type { SearchBarOwnProps } from '@kbn/unified-search-plugin/public/search_bar';
@@ -14,7 +13,6 @@ import { useKibana } from '../../hooks/use_kibana';
import { useUnifiedSearchContext } from '../../hooks/use_unified_search_context';
import { getKqlFieldsWithFallback } from '../../utils/get_kql_field_names_with_fallback';
import { ControlGroups } from './control_groups';
-import { DiscoverButton } from './discover_button';
export function SearchBar() {
const { refreshSubject$, dataView, searchState, onQueryChange } = useUnifiedSearchContext();
@@ -73,30 +71,20 @@ export function SearchBar() {
);
return (
-
-
- }
- onQuerySubmit={handleQuerySubmit}
- placeholder={i18n.translate('xpack.inventory.searchBar.placeholder', {
- defaultMessage:
- 'Search for your entities by name or its metadata (e.g. entity.type : service)',
- })}
- showDatePicker={false}
- showFilterBar
- showQueryInput
- showQueryMenu
- />
-
-
- {dataView ? (
-
-
-
- ) : null}
-
+ }
+ onQuerySubmit={handleQuerySubmit}
+ placeholder={i18n.translate('xpack.inventory.searchBar.placeholder', {
+ defaultMessage:
+ 'Search for your entities by name or its metadata (e.g. entity.type : service)',
+ })}
+ showDatePicker={false}
+ showFilterBar
+ showQueryInput
+ showQueryMenu
+ />
);
}
diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json
index c3d757f1117b6..88a3e85ece298 100644
--- a/x-pack/plugins/translations/translations/fr-FR.json
+++ b/x-pack/plugins/translations/translations/fr-FR.json
@@ -26203,6 +26203,7 @@
"xpack.inventory.badgeFilterWithPopover.openPopoverBadgeLabel": "Ouvrir la fenêtre contextuelle",
"xpack.inventory.data_view.creation_failed": "Une erreur s'est produite lors de la création de la vue de données",
"xpack.inventory.eemEnablement.errorTitle": "Erreur lors de l'activation du nouveau modèle d'entité",
+ "xpack.inventory.entityActions.discoverLink": "Ouvrir dans Discover",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsLabel": "Alertes",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsTooltip": "Le nombre d'alertes actives",
"xpack.inventory.entitiesGrid.euiDataGrid.entityNameLabel": "Nom de l'entité",
@@ -26232,7 +26233,6 @@
"xpack.inventory.noEntitiesEmptyState.description": "L'affichage de vos entités peut prendre quelques minutes. Essayez de rafraîchir à nouveau dans une minute ou deux.",
"xpack.inventory.noEntitiesEmptyState.learnMore.link": "En savoir plus",
"xpack.inventory.noEntitiesEmptyState.title": "Aucune entité disponible",
- "xpack.inventory.searchBar.discoverButton": "Ouvrir dans Discover",
"xpack.inventory.searchBar.placeholder": "Recherchez vos entités par nom ou par leurs métadonnées (par exemple entity.type : service)",
"xpack.inventory.shareLink.shareButtonLabel": "Partager",
"xpack.inventory.shareLink.shareToastFailureLabel": "Les URL courtes ne peuvent pas être copiées.",
diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json
index 7d5049d030541..aa7f66dde6817 100644
--- a/x-pack/plugins/translations/translations/ja-JP.json
+++ b/x-pack/plugins/translations/translations/ja-JP.json
@@ -26175,6 +26175,7 @@
"xpack.inventory.badgeFilterWithPopover.openPopoverBadgeLabel": "ポップオーバーを開く",
"xpack.inventory.data_view.creation_failed": "データビューの作成中にエラーが発生しました",
"xpack.inventory.eemEnablement.errorTitle": "新しいエンティティモデルの有効化エラー",
+ "xpack.inventory.entityActions.discoverLink": "Discoverで開く",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsLabel": "アラート",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsTooltip": "アクティブなアラートの件数",
"xpack.inventory.entitiesGrid.euiDataGrid.entityNameLabel": "エンティティ名",
@@ -26204,7 +26205,6 @@
"xpack.inventory.noEntitiesEmptyState.description": "エンティティが表示されるまで数分かかる場合があります。1〜2分後に更新してください。",
"xpack.inventory.noEntitiesEmptyState.learnMore.link": "詳細",
"xpack.inventory.noEntitiesEmptyState.title": "エンティティがありません",
- "xpack.inventory.searchBar.discoverButton": "Discoverで開く",
"xpack.inventory.searchBar.placeholder": "エンティティを名前またはメタデータ(例:entity.type : service)で検索します。",
"xpack.inventory.shareLink.shareButtonLabel": "共有",
"xpack.inventory.shareLink.shareToastFailureLabel": "短縮URLをコピーできません。",
diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json
index 5e47a4c655827..beeaabe1752f3 100644
--- a/x-pack/plugins/translations/translations/zh-CN.json
+++ b/x-pack/plugins/translations/translations/zh-CN.json
@@ -26231,6 +26231,7 @@
"xpack.inventory.badgeFilterWithPopover.openPopoverBadgeLabel": "打开弹出框",
"xpack.inventory.data_view.creation_failed": "创建数据视图时出错",
"xpack.inventory.eemEnablement.errorTitle": "启用新实体模型时出错",
+ "xpack.inventory.entityActions.discoverLink": "在 Discover 中打开",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsLabel": "告警",
"xpack.inventory.entitiesGrid.euiDataGrid.alertsTooltip": "活动告警计数",
"xpack.inventory.entitiesGrid.euiDataGrid.entityNameLabel": "实体名称",
@@ -26260,7 +26261,6 @@
"xpack.inventory.noEntitiesEmptyState.description": "您的实体可能需要数分钟才能显示。请尝试在一或两分钟后刷新。",
"xpack.inventory.noEntitiesEmptyState.learnMore.link": "了解详情",
"xpack.inventory.noEntitiesEmptyState.title": "无可用实体",
- "xpack.inventory.searchBar.discoverButton": "在 Discover 中打开",
"xpack.inventory.searchBar.placeholder": "按名称或其元数据(例如,entity.type:服务)搜索您的实体",
"xpack.inventory.shareLink.shareButtonLabel": "共享",
"xpack.inventory.shareLink.shareToastFailureLabel": "无法复制短 URL。",