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

[Inventory] Fix Open Explore in Discover link in a new tab #207346

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

rmyz
Copy link
Contributor

@rmyz rmyz commented Jan 21, 2025

Summary

Closes #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

@rmyz rmyz self-assigned this Jan 21, 2025
@rmyz rmyz added release_note:fix backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Jan 21, 2025
@rmyz
Copy link
Contributor Author

rmyz commented Jan 21, 2025

/ci

@rmyz
Copy link
Contributor Author

rmyz commented Jan 21, 2025

/ci

@rmyz rmyz marked this pull request as ready for review January 21, 2025 16:10
@rmyz rmyz requested a review from a team as a code owner January 21, 2025 16:10
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.

Code changes LGTM 💯 Thanks for the fix, just a nit ⬇️

@rmyz
Copy link
Contributor Author

rmyz commented Jan 21, 2025

/ci

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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
inventory 228.0KB 228.0KB +25.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
inventory 12.8KB 13.0KB +139.0B

History

cc @rmyz

@rmyz rmyz added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Jan 21, 2025
@elasticmachine
Copy link
Contributor

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

@rmyz rmyz merged commit 131a543 into elastic:main Jan 21, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12894769710

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 21, 2025
…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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Jan 21, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:fix Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Inventory v2] Open Explore in Discover link in a new tab
4 participants