-
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
[embeddable] remove EmbeddableInput type #211949
base: main
Are you sure you want to change the base?
Conversation
@elasticmachine merge upstream |
/ci |
/ci |
/ci |
/ci |
/ci |
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.
Type removal LGTM! NIce!
Left one nit
newPanels.push( | ||
convertPanelStateToSavedDashboardPanel(panel.panelIndex, { | ||
...originalPanelState, | ||
explicitInput: { | ||
...originalPanelState.explicitInput, | ||
...(originalPanelState.explicitInput.title === '' && | ||
!originalPanelState.explicitInput.hidePanelTitles | ||
...((originalPanelState.explicitInput as { title?: string }).title === '' && |
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.
I wonder if we can use one of the type guards like stateHasTitles
from src/platform/packages/shared/presentation/presentation_publishing/interfaces/titles/title_manager.ts
instead of just casting with as
here?
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.
presentation_publishing
is shared-browser
plugin. Is it worth making this shared-common
plugin so it can be used in server
?
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.
Ah I see, likely not worth the change without further discussion
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
|
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.
Code review only as only types are touched in @elastic/kibana-visualizations owned files. 👍
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.
APM changes LGTM
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.
ML changes LGTM
EmbeddableInput type is part of the legacy embeddable system. The legacy embeddable system is being removed and as such, the EmbeddableInput type is being removed.