Skip to content

Commit

Permalink
[8.x] Set relative date for host details link in onboarding flow (#20…
Browse files Browse the repository at this point in the history
…5622) (#205698)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Set relative date for host details link in onboarding flow
(#205622)](#205622)

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

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

<!--BACKPORT [{"author":{"name":"Mykola
Harmash","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-07T10:22:07Z","message":"Set
relative date for host details link in onboarding flow (#205622)\n\nThis
change sets a relative date range to the host details link from
the\r\nauto-detect onboarding flow. This prevents a situation when host
details\r\npage would open saying there is no data and it would be stuck
on a fixed\r\ndate range unable to load data even if user refreshes the
page.\r\n\r\nSomehow, even when onboarding flow can detect that the data
was already\r\ningested, the host details page might not see it for some
reason. This\r\nrequires a further investigation, but relative data
range is a fix for\r\nthe time
being.","sha":"212b1926743ca5821992c2877d9c68f621e1875e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-logs"],"title":"Set
relative date for host details link in onboarding
flow","number":205622,"url":"https://github.com/elastic/kibana/pull/205622","mergeCommit":{"message":"Set
relative date for host details link in onboarding flow (#205622)\n\nThis
change sets a relative date range to the host details link from
the\r\nauto-detect onboarding flow. This prevents a situation when host
details\r\npage would open saying there is no data and it would be stuck
on a fixed\r\ndate range unable to load data even if user refreshes the
page.\r\n\r\nSomehow, even when onboarding flow can detect that the data
was already\r\ningested, the host details page might not see it for some
reason. This\r\nrequires a further investigation, but relative data
range is a fix for\r\nthe time
being.","sha":"212b1926743ca5821992c2877d9c68f621e1875e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205622","number":205622,"mergeCommit":{"message":"Set
relative date for host details link in onboarding flow (#205622)\n\nThis
change sets a relative date range to the host details link from
the\r\nauto-detect onboarding flow. This prevents a situation when host
details\r\npage would open saying there is no data and it would be stuck
on a fixed\r\ndate range unable to load data even if user refreshes the
page.\r\n\r\nSomehow, even when onboarding flow can detect that the data
was already\r\ningested, the host details page might not see it for some
reason. This\r\nrequires a further investigation, but relative data
range is a fix for\r\nthe time
being.","sha":"212b1926743ca5821992c2877d9c68f621e1875e"}}]}]
BACKPORT-->

Co-authored-by: Mykola Harmash <[email protected]>
  • Loading branch information
kibanamachine and mykolaharmash authored Jan 7, 2025
1 parent 777435d commit 835c175
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ export const AutoDetectPanel: FunctionComponent = () => {
href: assetDetailsLocator.getRedirectUrl({
assetType: 'host',
assetId: integration.metadata?.hostname,
assetDetails: {
dateRange: {
from: 'now-15m',
to: 'now',
},
},
}),
},
]
Expand Down

0 comments on commit 835c175

Please sign in to comment.