Add integration tiles for MySQL, MongoDB, and generic native connectors (#140957)

This commit is contained in:
Byron Hulcher 2022-09-19 13:23:05 -04:00 committed by GitHub
parent 2fe75194d3
commit c6177aea3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 1 deletions

View file

@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) {
expect(resp.body).to.be.an('array');
expect(resp.body.length).to.be(40);
expect(resp.body.length).to.be(43);
// Test for sample data card
expect(resp.body.findIndex((c: { id: string }) => c.id === 'sample_data_all')).to.be.above(

View file

@ -396,4 +396,79 @@ export const registerEnterpriseSearchIntegrations = (
shipper: 'enterprise_search',
isBeta: false,
});
customIntegrations.registerCustomIntegration({
id: 'native_connector',
title: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.integrations.nativeConnectorName',
{
defaultMessage: 'Use a connector',
}
),
description: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.integrations.nativeConnectorDescription',
{
defaultMessage: 'Search over your data sources with a native Enterprise Search connector.',
}
),
categories: ['elastic_stack', 'enterprise_search'],
uiInternalPath:
'/app/enterprise_search/content/search_indices/new_index?method=native_connector',
icons: [
{
type: 'eui',
src: 'logoEnterpriseSearch',
},
],
shipper: 'enterprise_search',
isBeta: false,
});
customIntegrations.registerCustomIntegration({
id: 'mongodb',
title: i18n.translate('xpack.enterpriseSearch.workplaceSearch.integrations.mongoDBName', {
defaultMessage: 'MongoDB',
}),
description: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.integrations.mongoDBDescription',
{
defaultMessage: 'Search over your MongoDB content with Enterprise Search.',
}
),
categories: ['datastore', 'enterprise_search'],
uiInternalPath:
'/app/enterprise_search/content/search_indices/new_index?method=native_connector',
icons: [
{
type: 'svg',
src: http.basePath.prepend('/plugins/enterpriseSearch/assets/source_icons/mongodb.svg'),
},
],
shipper: 'enterprise_search',
isBeta: false,
});
customIntegrations.registerCustomIntegration({
id: 'mysql',
title: i18n.translate('xpack.enterpriseSearch.workplaceSearch.integrations.mysqlName', {
defaultMessage: 'MySQL',
}),
description: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.integrations.mysqlDescription',
{
defaultMessage: 'Search over your MySQL content with Enterprise Search.',
}
),
categories: ['datastore', 'enterprise_search'],
uiInternalPath:
'/app/enterprise_search/content/search_indices/new_index?method=native_connector',
icons: [
{
type: 'svg',
src: http.basePath.prepend('/plugins/enterpriseSearch/assets/source_icons/mysql.svg'),
},
],
shipper: 'enterprise_search',
isBeta: false,
});
};