Skip to content
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

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Oct 13, 2022

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:

image

Before:

image

@shahzad31 shahzad31 added release_note:skip Skip the PR/issue when compiling release notes v8.6.0 labels Oct 13, 2022
@shahzad31 shahzad31 marked this pull request as ready for review October 13, 2022 09:19
@shahzad31 shahzad31 requested a review from a team as a code owner October 13, 2022 09:19
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Oct 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

latestPing.observer?.geo?.name === locationLabel;
const latestPingId = latestPing?.monitor.id;

const isIdSame =
Copy link
Contributor

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.

Copy link
Contributor

@afgomez afgomez left a 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.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
synthetics 1011 1012 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.0MB 1.0MB -33.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@afgomez afgomez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shahzad31 shahzad31 merged commit 5c15168 into elastic:main Oct 17, 2022
@shahzad31 shahzad31 deleted the fix-project-view branch October 17, 2022 11:52
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Synthetic UI] Incomplete data for Project Monitors on summary page
5 participants