Set relative date for host details link in onboarding flow (#205622)

This change sets a relative date range to the host details link from the
auto-detect onboarding flow. This prevents a situation when host details
page would open saying there is no data and it would be stuck on a fixed
date range unable to load data even if user refreshes the page.

Somehow, even when onboarding flow can detect that the data was already
ingested, the host details page might not see it for some reason. This
requires a further investigation, but relative data range is a fix for
the time being.
This commit is contained in:
Mykola Harmash 2025-01-07 11:22:07 +01:00 committed by GitHub
parent b3c915ea27
commit 212b192674
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,6 +183,12 @@ export const AutoDetectPanel: FunctionComponent = () => {
href: assetDetailsLocator.getRedirectUrl({
assetType: 'host',
assetId: integration.metadata?.hostname,
assetDetails: {
dateRange: {
from: 'now-15m',
to: 'now',
},
},
}),
},
]