Skip to content

Commit

Permalink
[Enterprise Search] Update connectors for 8.10 (#162909)
Browse files Browse the repository at this point in the history
## Summary

This adds native connectors, updates existing connectors, and rebrands
the Enterprise Search tag to Search in the Integrations page.
  • Loading branch information
sphilipse authored Aug 3, 2023
1 parent a291671 commit a4d3c02
Show file tree
Hide file tree
Showing 8 changed files with 412 additions and 157 deletions.
3 changes: 1 addition & 2 deletions src/plugins/custom_integrations/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
14 changes: 12 additions & 2 deletions x-pack/plugins/enterprise_search/common/connectors/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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', {
Expand Down Expand Up @@ -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', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,111 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}),
serviceType: 'confluence',
},
dropbox: {
configuration: {
path: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'Path to fetch files/folders',
options: [],
order: 1,
required: false,
sensitive: false,
tooltip: 'This configurable field is ignored when Advanced Sync Rules are used.',
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '/',
},
app_key: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'App key',
options: [],
order: 2,
placeholder: '',
required: true,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
app_secret: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'App secret',
options: [],
order: 3,
required: true,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
refresh_token: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'Refresh token',
options: [],
order: 4,
required: true,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
retry_count: {
default_value: 3,
depends_on: [],
display: DisplayType.NUMERIC,
label: 'Retries per request',
options: [],
order: 5,
required: false,
sensitive: false,
tooltip: null,
type: FieldType.INTEGER,
ui_restrictions: ['advanced'],
validations: [],
value: 3,
},
concurrent_downloads: {
default_value: 100,
depends_on: [],
display: DisplayType.NUMERIC,
label: 'Maximum concurrent downloads',
options: [],
order: 6,
required: false,
sensitive: false,
tooltip: null,
type: FieldType.INTEGER,
ui_restrictions: ['advanced'],
validations: [],
value: 100,
},
},
features: {
[FeatureName.SYNC_RULES]: {
advanced: { enabled: true },
basic: { enabled: true },
},
},
name: i18n.translate('xpack.enterpriseSearch.nativeConnectors.dropbox.name', {
defaultMessage: 'Dropbox',
}),
serviceType: 'dropbox',
},
jira: {
configuration: {
data_source: {
Expand Down Expand Up @@ -1490,6 +1595,110 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}),
serviceType: 'postgresql',
},
servicenow: {
configuration: {
url: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'Service URL',
options: [],
order: 1,
required: true,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: 'http://127.0.0.1:9318',
},
username: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTAREA,
label: 'Username',
options: [],
order: 2,
required: true,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
password: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTBOX,
label: 'Password',
options: [],
order: 3,
required: true,
sensitive: true,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: '',
},
services: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTAREA,
label: 'Comma-separated list of services',
options: [],
order: 4,
required: true,
sensitive: false,
tooltip: 'List of services is ignored when Advanced Sync Rules are used.',
type: FieldType.LIST,
ui_restrictions: [],
validations: [],
value: '*',
},
retry_count: {
default_value: 3,
depends_on: [],
display: DisplayType.NUMERIC,
label: 'Retries per request',
options: [],
order: 5,
required: false,
sensitive: false,
tooltip: null,
type: FieldType.INTEGER,
ui_restrictions: ['advanced'],
validations: [],
value: 3,
},
concurrent_downloads: {
default_value: 10,
depends_on: [],
display: DisplayType.NUMERIC,
label: 'Maximum concurrent downloads',
options: [],
order: 6,
required: false,
sensitive: false,
tooltip: null,
type: FieldType.INTEGER,
ui_restrictions: ['advanced'],
validations: [],
value: 10,
},
},
features: {
[FeatureName.SYNC_RULES]: {
advanced: { enabled: true },
basic: { enabled: true },
},
},
name: i18n.translate('xpack.enterpriseSearch.nativeConnectors.servicenow.name', {
defaultMessage: 'ServiceNow',
}),
serviceType: 'servicenow',
},
sharepoint_online: {
configuration: {
tenant_id: {
Expand Down
Loading

0 comments on commit a4d3c02

Please sign in to comment.