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

[APM] Disable popover for grouped edges in Service Map #186597

Conversation

mykolaharmash
Copy link
Contributor

@mykolaharmash mykolaharmash commented Jun 21, 2024

Closes https://github.com/elastic/sdh-apm/issues/1378
Closes #186101

Summary

Looking at the code, it seems like use-case for showing popover on an edge that leads into a grouped resources node was never supported, and it's unclear what kind of content should be displayed in the popover in that case.

So this change just prevents the crashing reported in SDH by disabling popover on grouped edged. In case we want to support this use-case, there should a product decision about the content to show in the popover.

CleanShot.2024-06-21.at.11.35.00.mp4

@mykolaharmash mykolaharmash requested a review from a team as a code owner June 21, 2024 09:35
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jun 21, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mykolaharmash mykolaharmash added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Jun 21, 2024
@mykolaharmash
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 24, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

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

id before after diff
apm 3.5MB 3.5MB +29.0B

History

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

@jennypavlova jennypavlova self-requested a review June 24, 2024 08:50
Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

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

LGTM 💯
I don't see an error now. I saw some issues with showing "undefined" in the tooltip but it's not related to the PR. I double-checked on main and I can reproduce it there as well so it's out of the scope of the PR but decided to share it so we can investigate in the future - I used oblt-lite data to reproduce this:
image

@mykolaharmash
Copy link
Contributor Author

Thank you for checking! I've created a separate issue in our backlog for the undefined thing.

@mykolaharmash mykolaharmash merged commit 17b010c into elastic:main Jun 24, 2024
25 of 26 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 24, 2024
Closes elastic/sdh-apm#1378
Closes elastic#186101

## Summary

Looking at the code, it seems like use-case for showing popover on an
edge that leads into a grouped resources node was never supported, and
it's unclear what kind of content should be displayed in the popover in
that case.

So this change just prevents the crashing reported in SDH by disabling
popover on grouped edged. In case we want to support this use-case,
there should a product decision about the content to show in the
popover.

https://github.com/elastic/kibana/assets/793851/9a353843-fd70-4543-a0b3-2fb8293d497f

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 17b010c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 24, 2024
… (#186813)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[APM] Disable popover for grouped edges in Service Map
(#186597)](#186597)

<!--- 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":"2024-06-24T12:20:58Z","message":"[APM]
Disable popover for grouped edges in Service Map (#186597)\n\nCloses
https://github.com/elastic/sdh-apm/issues/1378\r\nCloses
https://github.com/elastic/kibana/issues/186101\r\n\r\n##
Summary\r\n\r\nLooking at the code, it seems like use-case for showing
popover on an\r\nedge that leads into a grouped resources node was never
supported, and\r\nit's unclear what kind of content should be displayed
in the popover in\r\nthat case.\r\n\r\nSo this change just prevents the
crashing reported in SDH by disabling\r\npopover on grouped edged. In
case we want to support this use-case,\r\nthere should a product
decision about the content to show in
the\r\npopover.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/793851/9a353843-fd70-4543-a0b3-2fb8293d497f\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"17b010c603d3e364a75cba1472a7179dea647aa3","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.15.0"],"title":"[APM]
Disable popover for grouped edges in Service
Map","number":186597,"url":"https://github.com/elastic/kibana/pull/186597","mergeCommit":{"message":"[APM]
Disable popover for grouped edges in Service Map (#186597)\n\nCloses
https://github.com/elastic/sdh-apm/issues/1378\r\nCloses
https://github.com/elastic/kibana/issues/186101\r\n\r\n##
Summary\r\n\r\nLooking at the code, it seems like use-case for showing
popover on an\r\nedge that leads into a grouped resources node was never
supported, and\r\nit's unclear what kind of content should be displayed
in the popover in\r\nthat case.\r\n\r\nSo this change just prevents the
crashing reported in SDH by disabling\r\npopover on grouped edged. In
case we want to support this use-case,\r\nthere should a product
decision about the content to show in
the\r\npopover.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/793851/9a353843-fd70-4543-a0b3-2fb8293d497f\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"17b010c603d3e364a75cba1472a7179dea647aa3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/186597","number":186597,"mergeCommit":{"message":"[APM]
Disable popover for grouped edges in Service Map (#186597)\n\nCloses
https://github.com/elastic/sdh-apm/issues/1378\r\nCloses
https://github.com/elastic/kibana/issues/186101\r\n\r\n##
Summary\r\n\r\nLooking at the code, it seems like use-case for showing
popover on an\r\nedge that leads into a grouped resources node was never
supported, and\r\nit's unclear what kind of content should be displayed
in the popover in\r\nthat case.\r\n\r\nSo this change just prevents the
crashing reported in SDH by disabling\r\npopover on grouped edged. In
case we want to support this use-case,\r\nthere should a product
decision about the content to show in
the\r\npopover.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/793851/9a353843-fd70-4543-a0b3-2fb8293d497f\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"17b010c603d3e364a75cba1472a7179dea647aa3"}}]}]
BACKPORT-->

Co-authored-by: Mykola Harmash <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.14.2 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM - Services Map] page error when clicking Service Map's arrow
6 participants