Skip to content

Commit

Permalink
[8.16] [EDR Workflows] Fix wrong endpoint link (#202434) (#202701)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.16`:
- [[EDR Workflows] Fix wrong endpoint link
(#202434)](#202434)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tomasz
Ciecierski","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-03T12:25:30Z","message":"[EDR
Workflows] Fix wrong endpoint link
(#202434)","sha":"bcd442239f0eaa6ba84579ea19311ad29221c01f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Defend
Workflows","ci:cloud-deploy","ci:project-deploy-security","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[EDR
Workflows] Fix wrong endpoint
link","number":202434,"url":"https://github.com/elastic/kibana/pull/202434","mergeCommit":{"message":"[EDR
Workflows] Fix wrong endpoint link
(#202434)","sha":"bcd442239f0eaa6ba84579ea19311ad29221c01f"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202434","number":202434,"mergeCommit":{"message":"[EDR
Workflows] Fix wrong endpoint link
(#202434)","sha":"bcd442239f0eaa6ba84579ea19311ad29221c01f"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tomasz Ciecierski <[email protected]>
  • Loading branch information
kibanamachine and tomsonpl authored Dec 3, 2024
1 parent a98da9b commit 1bd2090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useEndpointActionItems = (
const endpointMetadata = endpointInfo.metadata;
const isIsolated = isEndpointHostIsolated(endpointMetadata);
const endpointId = endpointMetadata.agent.id;
const endpointHostName = endpointMetadata.host.hostname;
const endpointHostName = endpointMetadata.host.hostname.toLowerCase();
const fleetAgentId = endpointMetadata.elastic.agent.id;
const { show, selected_endpoint: _selectedEndpoint, ...currentUrlParams } = allCurrentUrlParams;
const endpointActionsPath = getEndpointDetailsPath({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ describe('when on the endpoint list page', () => {
it('navigates to the Security Solution Host Details page', async () => {
const hostLink = await renderResult.findByTestId('hostLink');
expect(hostLink.getAttribute('href')).toEqual(
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname}`
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname.toLowerCase()}`
);
});
it('navigates to the correct Ingest Agent Policy page', async () => {
Expand Down

0 comments on commit 1bd2090

Please sign in to comment.