-
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] Fix monitor details project monitor view #143258
Conversation
Pinging @elastic/uptime (Team:uptime) |
...plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_id.ts
Outdated
Show resolved
Hide resolved
latestPing.observer?.geo?.name === locationLabel; | ||
const latestPingId = latestPing?.monitor.id; | ||
|
||
const isIdSame = |
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.
Take into account that both latestPingId
and monitorId
might be undefined
, and in that case this will evaluate to true
.
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 tested the code and it seems to work 🥳! Good job.
I left some comments when I did a first pass. Once those are addressed I can approve and we can get this merged.
e4eb1d2
to
813741a
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
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!
Summary
Fixes #143059
Fixes monitor details view for project monitors.
Uses custom_heartbeat_id for data instead of monitor.id if monitor origin is of type project !!
After:
Before: