-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Discover][Traces] All "Open in Discover" links now open in a new Discover Tab on left-click #251103
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
Merged
iblancof
merged 46 commits into
elastic:main
from
iblancof:4863-deliverable-open-in-discover-in-logs-traces-discover-fly-outs-open-new-tab
Feb 4, 2026
Merged
[Discover][Traces] All "Open in Discover" links now open in a new Discover Tab on left-click #251103
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e5e53ba
Modify section actions to allow both href and click
iblancof e1180a0
Merge branch 'main' of https://github.com/elastic/kibana into 4863-de…
iblancof 09598ef
Create useDocViewerExtensionActions
iblancof 53d922c
Pass actions to overview
iblancof 2bc455a
Create useOpenInDiscoverSectionAction
iblancof 06e6108
Create useDiscoverLinkAndEsqlQuery
iblancof e519159
Change useOpenInDiscoverSectionAction params
iblancof a8a5329
Use new hooks in SimilarSpans
iblancof 4985d84
Use new hooks in TraceContextLogEvents
iblancof 44ffbe0
ADD TODO in overview
iblancof 792b982
Merge branch 'main' of https://github.com/elastic/kibana into 4863-de…
iblancof e78a254
Use new hooks in ErrorsTable
iblancof 1f61861
Remove unused constant
iblancof 2435455
Update dataTestSubj for errors
iblancof 889ce4c
Use new hooks in SpanLinks
iblancof 99eb581
Pass actions to logs overview
iblancof 8b0736f
Use new hooks in SimilarErrors
iblancof 8b5c96f
Merge branch 'main' of https://github.com/elastic/kibana into 4863-de…
iblancof 3488f4e
Move hooks
iblancof 01f3390
Pass actions into waterfall flyout overviews
iblancof 6715ced
Fix typing issue in SpanLinks
iblancof 9753cf3
Set actions at a higher type level
iblancof 9656e0b
Add tests for useDiscoverLinkAndEsqlQuery
iblancof caeb605
Add tests for useOpenInDiscoverSectionAction
iblancof 9329caf
Changes from node scripts/lint_ts_projects --fix
kibanamachine 063567d
Changes from node scripts/regenerate_moon_projects.js --update
kibanamachine 8816579
Merge branch 'main' of https://github.com/elastic/kibana into 4863-de…
iblancof a44704b
Use new hooks in TraceWaterfall
iblancof 12b8674
Update import to avoid circular dep
iblancof c6b8dc6
Changes from node scripts/lint_ts_projects --fix
kibanamachine 01ae64c
Changes from node scripts/regenerate_moon_projects.js --update
kibanamachine f3f2193
Update constant names
iblancof 23b4009
Merge branch '4863-deliverable-open-in-discover-in-logs-traces-discov…
iblancof 61ac197
Update import strategy for hooks
iblancof 2251b8f
Update constant name
iblancof 1dd08d8
Refactor useOpenInDiscoverSectionAction
iblancof dd5486c
Merge branch 'main' of https://github.com/elastic/kibana into 4863-de…
iblancof 5e19fda
Simplify buttonProps
iblancof 9c13712
Memoize actions
iblancof 37423a3
Simplify useDocViewerExtensionActions return
iblancof 12e0e05
Place actionId before its usage
iblancof 338a521
Remove actions from DocViewRenderProps
iblancof bf57111
Fix import in UseDocViewerExtensionActionsParams
iblancof d514da9
Update actions prop name
iblancof b77c539
Add actions to generic doc viewer
iblancof 9fcb91f
Update actions prop name
iblancof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
|
|
||
| export type { | ||
| DocView, | ||
| DocViewActions, | ||
| DocViewFilterFn, | ||
| DocViewRenderProps, | ||
| DocViewerComponent, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These actions are too Discover specific to add on all doc views. Can we instead make doc views that want to use them extend a common props interface with
actions?: DocViewActions;to make it opt in?Also unfortunate we need to duplicate types from Discover, but that's more an issue on our end. We originally assumed contextual components would live directly in the Discover codebase.
Uh oh!
There was an error while loading. Please reload this page.
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.
Hey Davis, thanks so much for the feedback.
I actually had the same question initially when adding actions directly to
DocViewRenderProps, but I decided to include it after seeing thatfilters,onAddColumn, andonRemoveColumnwere already defined there, and those also feel quite tightly coupled to Discover. Are those functions meant to be used outside of Discover as well? Maybe I’m missing some context here.That said, I’ll follow your recommendation since you suggested it, but I’d still love to better understand what makes
actionsdifferent from the other functions I mentioned above.Yeah, I did run into circular deps at some point because of types. We could probably “just” extract them, but based on what you mentioned about the initial assumption, I get the sense that the issue goes beyond that.
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.
Thanks for updating it!
While it's not the way I'd model it personally tbh, yes they can be. They're for integrating with any consumers supporting Unified Search or displaying tabular results (e.g. Timeline, Streams, etc.). Also worth noting Unified Doc Viewer is quite old and carries around some unfortunate tech debt.
I think extracting them is probably an acceptable solution, it just hadn't been an issue until more recently so we never did. I'm also ok with components living outside the Discover codebase, just an incorrect assumption when we first built things.