-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Synthetics UI] Prefer custom_heartbeat_id
to monitor.id
for Uptime detail link when present
#143128
Conversation
Pinging @elastic/uptime (Team:uptime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested with project monitors and non project monitors. Now going to the correct href for both.
@@ -118,6 +118,7 @@ export const LastTenTestRuns = () => { | |||
}, | |||
]; | |||
|
|||
const historyIdParam = monitor?.custom_heartbeat_id ?? monitor?.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion
const historyIdParam = monitor?.custom_heartbeat_id ?? monitor?.id; | |
const historyIdParam = monitor?.[ConfigKey.CUSTOM_HEARTBEAT_ID] ?? monitor?.id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ I need to get used to relying on these!
@elasticmachine merge upstream |
58e3f04
to
c751d83
Compare
c751d83
to
87f061f
Compare
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…me detail link when present (elastic#143128) * Prefer `custom_heartbeat_id` to `monitor.id` when present. * Prefer `ConfigKey`. (cherry picked from commit c25eedc)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
Resolves #143016.
We link to the Uptime detail link from the Synthetics last 10 runs view. Unfortunately, when there's a custom heartbeat ID, our view is not resilient to this. Uptime UI utilizes the custom ID for its queries, so we need to account for this as long as we are linking to that UI.