-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Dashboard add or update panel #71130
Dashboard add or update panel #71130
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@@ -40,6 +40,7 @@ export function isEmbeddableEditorState(state: unknown): state is EmbeddableEdit | |||
export interface EmbeddablePackageByReferenceState { | |||
type: string; | |||
id: string; | |||
embeddableIdToReplace?: string; |
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.
This doesn't have to go in this PR, but doesn't hurt. IMHO my opinion it would be better called just embeddableId
, but as you wish.
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 will remove it from this PR, since it's no longer used. That key is actually just a workaround, specifically for removing the 'by value' embeddable after it has been added to the library. Once #70381 is fixed it should definitely be renamed embeddableId
.
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
Added a standard method for adding or replacing a panel on a dashboard.
Summary
A small change in support of #70272 and a future PR involving editing visualizations by value. This adds a standard method for adding or replacing a panel on a dashboard.
The update portion of this method will be simplified further by calling
panel.updateInput()
once #70381 is fixed.Checklist
Delete any items that are not applicable to this PR.
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibility- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this in your browser- [ ] This was checked for cross-browser compatibilityFor maintainers