From a4d3c0203f70cc777c35172ba622d1781708773a Mon Sep 17 00:00:00 2001 From: Sander Philipse <94373878+sphilipse@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:14:07 +0200 Subject: [PATCH] [Enterprise Search] Update connectors for 8.10 (#162909) ## Summary This adds native connectors, updates existing connectors, and rebrands the Enterprise Search tag to Search in the Integrations page. --- .../custom_integrations/common/index.ts | 3 +- .../apis/custom_integration/integrations.ts | 2 +- .../common/connectors/connectors.ts | 14 +- .../common/connectors/native_connectors.ts | 209 ++++++++++++ .../enterprise_search/server/integrations.ts | 320 +++++++++++------- .../translations/translations/fr-FR.json | 7 - .../translations/translations/ja-JP.json | 7 - .../translations/translations/zh-CN.json | 7 - 8 files changed, 412 insertions(+), 157 deletions(-) diff --git a/src/plugins/custom_integrations/common/index.ts b/src/plugins/custom_integrations/common/index.ts index 93d91553dcd4..570735d6e1e8 100755 --- a/src/plugins/custom_integrations/common/index.ts +++ b/src/plugins/custom_integrations/common/index.ts @@ -78,7 +78,6 @@ export const INTEGRATION_CATEGORY_DISPLAY: { web: { title: 'Web Server', parent_id: 'observability' }, web_application_firewall: { title: 'Web Application Firewall', parent_id: 'security' }, websphere: { title: 'WebSphere Application Server', parent_id: 'observability' }, - workplace_search: { title: 'Workplace Search', parent_id: 'enterprise_search' }, workplace_search_content_source: { title: 'Workplace Search Content Source', parent_id: 'enterprise_search', @@ -120,7 +119,7 @@ export interface IntegrationCategoryCount { // TODO: consider i18n export const SHIPPER_DISPLAY = { beats: 'Beats', - enterprise_search: 'Enterprise Search', + enterprise_search: 'Search', language_clients: 'Language clients', other: 'Other', sample_data: 'Sample data', diff --git a/test/api_integration/apis/custom_integration/integrations.ts b/test/api_integration/apis/custom_integration/integrations.ts index a924b416f30c..67d7c8caf213 100644 --- a/test/api_integration/apis/custom_integration/integrations.ts +++ b/test/api_integration/apis/custom_integration/integrations.ts @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) { expect(resp.body).to.be.an('array'); - expect(resp.body.length).to.be(49); + expect(resp.body.length).to.be(50); // Test for sample data card expect(resp.body.findIndex((c: { id: string }) => c.id === 'sample_data_all')).to.be.above( diff --git a/x-pack/plugins/enterprise_search/common/connectors/connectors.ts b/x-pack/plugins/enterprise_search/common/connectors/connectors.ts index 1acdb588b2f3..1c5a3f30dcc4 100644 --- a/x-pack/plugins/enterprise_search/common/connectors/connectors.ts +++ b/x-pack/plugins/enterprise_search/common/connectors/connectors.ts @@ -48,6 +48,16 @@ export const CONNECTOR_DEFINITIONS: ConnectorServerSideDefinition[] = [ }), serviceType: 'jira', }, + { + iconPath: 'github.svg', + isBeta: true, + isNative: false, + keywords: ['github', 'cloud', 'connector'], + name: i18n.translate('xpack.enterpriseSearch.content.nativeConnectors.github.name', { + defaultMessage: 'GitHub & GitHub Enterprise Server', + }), + serviceType: 'github', + }, { iconPath: 'google_cloud_storage.svg', isBeta: true, @@ -132,7 +142,7 @@ export const CONNECTOR_DEFINITIONS: ConnectorServerSideDefinition[] = [ { iconPath: 'dropbox.svg', isBeta: true, - isNative: false, + isNative: true, isTechPreview: false, keywords: ['dropbox', 'connector'], name: i18n.translate('xpack.enterpriseSearch.content.nativeConnectors.dropbox.name', { @@ -163,7 +173,7 @@ export const CONNECTOR_DEFINITIONS: ConnectorServerSideDefinition[] = [ { iconPath: 'servicenow.svg', isBeta: true, - isNative: false, + isNative: true, isTechPreview: false, keywords: ['servicenow', 'cloud', 'connector'], name: i18n.translate('xpack.enterpriseSearch.content.nativeConnectors.serviceNow.name', { diff --git a/x-pack/plugins/enterprise_search/common/connectors/native_connectors.ts b/x-pack/plugins/enterprise_search/common/connectors/native_connectors.ts index 0bf427a7496e..e62457691832 100644 --- a/x-pack/plugins/enterprise_search/common/connectors/native_connectors.ts +++ b/x-pack/plugins/enterprise_search/common/connectors/native_connectors.ts @@ -418,6 +418,111 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record