-
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
[Inventory v2] Open Explore in Discover link in a new tab #207064
Comments
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
@jennypavlova Based on the code, I'm guessing the issue here is that only the Instead you can pass On a side note, I think there may be an issue with the conditions for showing the locator link which I left a comment about here: #204026 (comment). |
@davismcphee Thank you for your help! I updated the issue and we will try to solve both things as part of the fix here :) |
Hey @roshan-elastic, working on this, I found a small rare issue: There's a case that may happen with the custom entity definitions if the index pattern is not defined/empty if we click the Explore in Discover button for an entity, redirecting you to the Discover view but with no title and no available suggested fields. This is happening right now, what should we do? Some options here
|
As discussed with @roshan-elastic, we will leave it as it is, no changes are needed as this is not critical. |
Thanks both. Yeah, I'm OK leaving this if as it's a 'nice-to-have' (especially handling data views where the index pattern is missing in the source - that is an edge case). |
…07346) ## Summary Closes elastic#207064 This PR fixes the Explore in Discover link to be able to open it in a new tab using `dataViewSpec: dataView.toMinimalSpec()`. ## How to test it 1. Enable `entityCentricExperience` feature flag 2. Run some synthtrace scenario, for example `node scripts/synthtrace infra_docker_containers` 3. Click into an entity group and select Explore in Discover in any entity. 4. You should be redirected to the data view correctly by clicking or opening in a new tab --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 131a543)
…7346) (#207434) # Backport This will backport the following commits from `main` to `8.x`: - [[Inventory] Fix Open Explore in Discover link in a new tab (#207346)](#207346) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Romeu","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-21T19:54:55Z","message":"[Inventory] Fix Open Explore in Discover link in a new tab (#207346)\n\n## Summary\n\nCloses #207064\n\nThis PR fixes the Explore in Discover link to be able to open it in a\nnew tab using `dataViewSpec: dataView.toMinimalSpec()`.\n\n## How to test it\n1. Enable `entityCentricExperience` feature flag\n2. Run some synthtrace scenario, for example `node scripts/synthtrace\ninfra_docker_containers`\n3. Click into an entity group and select Explore in Discover in any\nentity.\n4. You should be redirected to the data view correctly by clicking or\nopening in a new tab\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"131a543eb280e45d3d4493da96e29fbd2e5df87c","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:prev-minor","Team:obs-ux-infra_services"],"title":"[Inventory] Fix Open Explore in Discover link in a new tab","number":207346,"url":"https://github.com/elastic/kibana/pull/207346","mergeCommit":{"message":"[Inventory] Fix Open Explore in Discover link in a new tab (#207346)\n\n## Summary\n\nCloses #207064\n\nThis PR fixes the Explore in Discover link to be able to open it in a\nnew tab using `dataViewSpec: dataView.toMinimalSpec()`.\n\n## How to test it\n1. Enable `entityCentricExperience` feature flag\n2. Run some synthtrace scenario, for example `node scripts/synthtrace\ninfra_docker_containers`\n3. Click into an entity group and select Explore in Discover in any\nentity.\n4. You should be redirected to the data view correctly by clicking or\nopening in a new tab\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"131a543eb280e45d3d4493da96e29fbd2e5df87c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207346","number":207346,"mergeCommit":{"message":"[Inventory] Fix Open Explore in Discover link in a new tab (#207346)\n\n## Summary\n\nCloses #207064\n\nThis PR fixes the Explore in Discover link to be able to open it in a\nnew tab using `dataViewSpec: dataView.toMinimalSpec()`.\n\n## How to test it\n1. Enable `entityCentricExperience` feature flag\n2. Run some synthtrace scenario, for example `node scripts/synthtrace\ninfra_docker_containers`\n3. Click into an entity group and select Explore in Discover in any\nentity.\n4. You should be redirected to the data view correctly by clicking or\nopening in a new tab\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"131a543eb280e45d3d4493da96e29fbd2e5df87c"}}]}] BACKPORT--> Co-authored-by: Sergi Romeu <[email protected]>
…07346) ## Summary Closes elastic#207064 This PR fixes the Explore in Discover link to be able to open it in a new tab using `dataViewSpec: dataView.toMinimalSpec()`. ## How to test it 1. Enable `entityCentricExperience` feature flag 2. Run some synthtrace scenario, for example `node scripts/synthtrace infra_docker_containers` 3. Click into an entity group and select Explore in Discover in any entity. 4. You should be redirected to the data view correctly by clicking or opening in a new tab --------- Co-authored-by: kibanamachine <[email protected]>
Summary
While testing the Explore in Discover link we saw a different behavior based on how the link is opened. If the link opens in the same time it works as expected (We are using the discover locator - implementation)
same_tab_working.mov
When opening the same link in a new tab (or copy/paste) the ad-hoc data view is not shown (there is a warning message on the screen)
new_tab_not_working.mov
I am wondering if opening in a new tab is a limitation of the ad-hoc dataviews or something that Discover locator doesn't support (in the screen recording is visible that the id is populated and then changes when the page loaded) Or if there are any changes to the redirect required to support it 🤔
Pinging @elastic/kibana-data-discovery as Codeowner of the discover locator- Can you please take a look at the issue and help us fix that?
Implementation details
We should try the solution mentioned in #207064 (comment) and fix this #204026 (comment)
AC
The text was updated successfully, but these errors were encountered: