mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.14`: - [[Search] Add example status for OpenText Documentum (#184426)](https://github.com/elastic/kibana/pull/184426) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Efe Gürkan YALAMAN","email":"efeguerkan.yalaman@elastic.co"},"sourceCommit":{"committedDate":"2024-05-29T16:21:35Z","message":"[Search] Add example status for OpenText Documentum (#184426)\n\n## Summary\r\n\r\nAdds example status for OpenText Documentum connector\r\n\r\n<img width=\"1579\" alt=\"Screenshot 2024-05-29 at 14 35 55\"\r\nsrc=\"a81bf662
-79bc-4650-9611-443478f0206b\">\r\n<img width=\"452\" alt=\"Screenshot 2024-05-29 at 14 36 05\"\r\nsrc=\"15c34d9a
-42fd-4c2e-bda8-f6ac9d136e42\">\r\n\r\n\r\n\r\n### Checklist\r\n\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"cd9cd89bbfacc64ac0cd8c448a7f9b0ba1fee2a7","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:EnterpriseSearch","v8.14.0","v8.15.0"],"title":"[Search] Add example status for OpenText Documentum","number":184426,"url":"https://github.com/elastic/kibana/pull/184426","mergeCommit":{"message":"[Search] Add example status for OpenText Documentum (#184426)\n\n## Summary\r\n\r\nAdds example status for OpenText Documentum connector\r\n\r\n<img width=\"1579\" alt=\"Screenshot 2024-05-29 at 14 35 55\"\r\nsrc=\"a81bf662
-79bc-4650-9611-443478f0206b\">\r\n<img width=\"452\" alt=\"Screenshot 2024-05-29 at 14 36 05\"\r\nsrc=\"15c34d9a
-42fd-4c2e-bda8-f6ac9d136e42\">\r\n\r\n\r\n\r\n### Checklist\r\n\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"cd9cd89bbfacc64ac0cd8c448a7f9b0ba1fee2a7"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/184426","number":184426,"mergeCommit":{"message":"[Search] Add example status for OpenText Documentum (#184426)\n\n## Summary\r\n\r\nAdds example status for OpenText Documentum connector\r\n\r\n<img width=\"1579\" alt=\"Screenshot 2024-05-29 at 14 35 55\"\r\nsrc=\"a81bf662
-79bc-4650-9611-443478f0206b\">\r\n<img width=\"452\" alt=\"Screenshot 2024-05-29 at 14 36 05\"\r\nsrc=\"15c34d9a
-42fd-4c2e-bda8-f6ac9d136e42\">\r\n\r\n\r\n\r\n### Checklist\r\n\r\n\r\n- [ ] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [ ] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"cd9cd89bbfacc64ac0cd8c448a7f9b0ba1fee2a7"}}]}] BACKPORT--> Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
This commit is contained in:
parent
787245bb54
commit
8a37e604d6
5 changed files with 88 additions and 3 deletions
|
@ -243,3 +243,6 @@ export const PLUGIN_ID = 'enterpriseSearch';
|
|||
|
||||
export const CONNECTOR_NATIVE_TYPE = 'native';
|
||||
export const CONNECTOR_CLIENTS_TYPE = 'connector_clients';
|
||||
|
||||
// TODO remove this once the connector service types are no longer in "example" state
|
||||
export const EXAMPLE_CONNECTOR_SERVICE_TYPES = ['opentext_documentum'];
|
||||
|
|
|
@ -28,6 +28,8 @@ import { FormattedMessage } from '@kbn/i18n-react';
|
|||
|
||||
import { ConnectorConfigurationComponent, ConnectorStatus } from '@kbn/search-connectors';
|
||||
|
||||
import { EXAMPLE_CONNECTOR_SERVICE_TYPES } from '../../../../../common/constants';
|
||||
|
||||
import { Status } from '../../../../../common/types/api';
|
||||
import { BetaConnectorCallout } from '../../../shared/beta/beta_connector_callout';
|
||||
import { useCloudDetails } from '../../../shared/cloud_details/cloud_details';
|
||||
|
@ -95,6 +97,34 @@ export const ConnectorConfiguration: React.FC = () => {
|
|||
return (
|
||||
<>
|
||||
<EuiSpacer />
|
||||
{
|
||||
// TODO remove this callout when example status is removed
|
||||
connector &&
|
||||
connector.service_type &&
|
||||
EXAMPLE_CONNECTOR_SERVICE_TYPES.includes(connector.service_type) && (
|
||||
<>
|
||||
<EuiCallOut
|
||||
iconType="iInCircle"
|
||||
color="warning"
|
||||
title={i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.overview.connectorUnsupportedCallOut.title',
|
||||
{
|
||||
defaultMessage: 'Example connector',
|
||||
}
|
||||
)}
|
||||
>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="s">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.content.connectors.overview.connectorUnsupportedCallOut.description"
|
||||
defaultMessage="This is an example connector that serves as a building block for customizations. The design and code is being provided as-is with no warranties. This is not subject to the SLA of supported features."
|
||||
/>
|
||||
</EuiText>
|
||||
</EuiCallOut>
|
||||
<EuiSpacer />
|
||||
</>
|
||||
)
|
||||
}
|
||||
<EuiFlexGroup>
|
||||
<EuiFlexItem grow={2}>
|
||||
<EuiPanel hasShadow={false} hasBorder>
|
||||
|
|
|
@ -15,7 +15,10 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
|
||||
import { ENTERPRISE_SEARCH_CONNECTOR_CRAWLER_SERVICE_TYPE } from '../../../../../common/constants';
|
||||
import {
|
||||
ENTERPRISE_SEARCH_CONNECTOR_CRAWLER_SERVICE_TYPE,
|
||||
EXAMPLE_CONNECTOR_SERVICE_TYPES,
|
||||
} from '../../../../../common/constants';
|
||||
|
||||
import { docLinks } from '../../../shared/doc_links';
|
||||
import { generateEncodedPath } from '../../../shared/encode_path_params';
|
||||
|
@ -42,6 +45,34 @@ export const ConnectorDetailOverview: React.FC = () => {
|
|||
|
||||
return (
|
||||
<>
|
||||
{
|
||||
// TODO remove this callout when example status is removed
|
||||
connector &&
|
||||
connector.service_type &&
|
||||
EXAMPLE_CONNECTOR_SERVICE_TYPES.includes(connector.service_type) && (
|
||||
<>
|
||||
<EuiCallOut
|
||||
iconType="iInCircle"
|
||||
color="warning"
|
||||
title={i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.overview.connectorUnsupportedCallOut.title',
|
||||
{
|
||||
defaultMessage: 'Example connector',
|
||||
}
|
||||
)}
|
||||
>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="s">
|
||||
<FormattedMessage
|
||||
id="xpack.enterpriseSearch.content.connectors.overview.connectorUnsupportedCallOut.description"
|
||||
defaultMessage="This is an example connector that serves as a building block for customizations. The design and code is being provided as-is with no warranties. This is not subject to the SLA of supported features."
|
||||
/>
|
||||
</EuiText>
|
||||
</EuiCallOut>
|
||||
<EuiSpacer />
|
||||
</>
|
||||
)
|
||||
}
|
||||
{error && (
|
||||
<>
|
||||
<EuiCallOut
|
||||
|
|
|
@ -29,7 +29,14 @@ import {
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import { BETA_LABEL, NATIVE_LABEL, CONNECTOR_CLIENT_LABEL } from '../../../../shared/constants';
|
||||
import { EXAMPLE_CONNECTOR_SERVICE_TYPES } from '../../../../../../common/constants';
|
||||
|
||||
import {
|
||||
BETA_LABEL,
|
||||
NATIVE_LABEL,
|
||||
CONNECTOR_CLIENT_LABEL,
|
||||
EXAMPLE_CONNECTOR_LABEL,
|
||||
} from '../../../../shared/constants';
|
||||
|
||||
import { PlatinumLicensePopover } from '../../shared/platinum_license_popover/platinum_license_popover';
|
||||
|
||||
|
@ -249,7 +256,14 @@ export const ConnectorCheckable: React.FC<ConnectorCheckableProps> = ({
|
|||
</EuiBadge>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
{isTechPreview && (
|
||||
{EXAMPLE_CONNECTOR_SERVICE_TYPES.includes(serviceType) && (
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiBadge color="hollow" iconType="beaker">
|
||||
<EuiText size="xs">{EXAMPLE_CONNECTOR_LABEL}</EuiText>
|
||||
</EuiBadge>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
{isTechPreview && !EXAMPLE_CONNECTOR_SERVICE_TYPES.includes(serviceType) && (
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiBadge color="hollow" iconType="beaker">
|
||||
<EuiText size="xs">
|
||||
|
|
|
@ -53,3 +53,10 @@ export const CONNECTOR_CLIENT_LABEL = i18n.translate(
|
|||
defaultMessage: 'Connector Client',
|
||||
}
|
||||
);
|
||||
|
||||
export const EXAMPLE_CONNECTOR_LABEL = i18n.translate(
|
||||
'xpack.enterpriseSearch.exampleConnectorLabel',
|
||||
{
|
||||
defaultMessage: 'Example',
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue