From 005f11ca8855e239432c03792208a34ac10a08d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20G=C3=BCrkan=20YALAMAN?= Date: Tue, 30 Apr 2024 11:26:58 +0200 Subject: [PATCH] [Search] Update "Connectors" search type to singular "Connector" (#182006) ## Summary Update search tag from "Connectors" to "Connector" ### Checklist Delete any items that are not applicable to this PR. - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --- .../server/utils/connectors_search_result_provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts b/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts index 3035a136f34de..bfb42c846b6dc 100644 --- a/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts +++ b/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts @@ -26,7 +26,7 @@ export function getConnectorsSearchResultProvider( ): GlobalSearchResultProvider { return { find: ({ term, types, tags }, { aborted$, client, maxResults }) => { - if (!client || !term || tags || (types && !types.includes('connectors'))) { + if (!client || !term || tags || (types && !types.includes('connector'))) { return from([[]]); } const getConnectorData = async (): Promise => { @@ -54,7 +54,7 @@ export function getConnectorsSearchResultProvider( }; return from(getConnectorData()).pipe(takeUntil(aborted$)); }, - getSearchableTypes: () => ['connectors'], + getSearchableTypes: () => ['connector'], id: 'enterpriseSearchConnectors', }; }