-
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
[Lens] Decouple Open in Discover Action and Drilldown from Embeddable framework #177888
[Lens] Decouple Open in Discover Action and Drilldown from Embeddable framework #177888
Conversation
/ci |
/ci |
/ci |
import { apiIsOfType } from '@kbn/presentation-publishing'; | ||
import { HasLensConfig, ViewUnderlyingDataArgs } from '../embeddable'; | ||
|
||
export type OpenInDiscoverActionApi = HasLensConfig & { |
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.
New interface definitions are defined for embeddables, not actions. Action APIs just define a collection of existing interfaces but does not add new interface definitions.
I think there are 2 ways forward
- move
canViewUnderlyingData
andgetViewUnderlyingDataArgs
intoHasLensConfig
API since they are properties of a lens API - Create a interface file as a sibling to
has_lens_config
, something likePublishesUnderlyingData
, and move this API and type guard into that interface.
I think I like option 1 the best since this part of lens API. @ThomThomson thoughts?
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. I've seen the LensApi
changes you are making in https://github.com/elastic/kibana/pull/176869/files#diff-cf9423bd506b04c1decd8629e55629bdd19b74ad59f869f3abe994c1d364b2bc and Option 1 makes sense.
Option 2 would also work, but it seems like an unnecessary abstraction.
/ci |
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Pinging @elastic/kibana-presentation (Team:Presentation) |
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.
LGTM
code review only
/ci |
/ci |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @nickpeihl |
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.
Tested on Chrome, the changes look good to me 👌🏼
Summary
Decouples the "Explore data in Discover" panel action and the "Open in Discover" drilldown from the legacy embeddable framework.
part of #175138