From b2c5123e03e1ed2ef0dc0ecec5936ffa97ab154d Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 19 Nov 2024 07:55:07 +1100 Subject: [PATCH] [8.16] [Connector] Checkout to right version (#200623) (#200636) # Backport This will backport the following commits from `main` to `8.16`: - [[Connector] Checkout to right version (#200623)](https://github.com/elastic/kibana/pull/200623) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Jedr Blaszyk --- .../connector_detail/components/run_from_source_step.tsx | 4 +++- .../components/connector_detail/deployment.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/run_from_source_step.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/run_from_source_step.tsx index 1c2775dafd54a..c71644e0d53bc 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/run_from_source_step.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/components/run_from_source_step.tsx @@ -36,6 +36,7 @@ export interface RunFromSourceStepProps { connectorId?: string; isWaitingForConnector: boolean; serviceType: string; + connectorVersion: string; } export const RunFromSourceStep: React.FC = ({ @@ -43,6 +44,7 @@ export const RunFromSourceStep: React.FC = ({ connectorId, isWaitingForConnector, serviceType, + connectorVersion, }) => { const [isOpen, setIsOpen] = React.useState('open'); useEffect(() => { @@ -125,7 +127,7 @@ export const RunFromSourceStep: React.FC = ({ diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/deployment.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/deployment.tsx index 7bf1f101cc71a..545c0f2620e34 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/deployment.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/connector_detail/deployment.tsx @@ -193,6 +193,7 @@ export const ConnectorDeployment: React.FC = () => { serviceType={connector.service_type ?? ''} apiKeyData={apiKey} isWaitingForConnector={isWaitingForConnector} + connectorVersion={kibanaVersion ? `v${kibanaVersion}` : 'main'} /> ) : (