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

Dashboard add or update panel #71130

Merged

Conversation

ThomThomson
Copy link
Contributor

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 compatibility

For maintainers

@ThomThomson ThomThomson added Feature:Dashboard Dashboard related features Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes labels Jul 8, 2020
@ThomThomson ThomThomson requested a review from a team July 8, 2020 17:31
@ThomThomson ThomThomson requested a review from a team as a code owner July 8, 2020 17:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@botelastic botelastic bot added the Feature:Embedding Embedding content via iFrame label Jul 8, 2020
@ThomThomson ThomThomson mentioned this pull request Jul 8, 2020
7 tasks
@@ -40,6 +40,7 @@ export function isEmbeddableEditorState(state: unknown): state is EmbeddableEdit
export interface EmbeddablePackageByReferenceState {
type: string;
id: string;
embeddableIdToReplace?: string;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

‼️ unable to find a baseline build for [master@8574a92]. Try merging the upstream branch and trying again.

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ThomThomson ThomThomson merged commit e54729c into elastic:master Jul 9, 2020
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Jul 9, 2020
Added a standard method for adding or replacing a panel on a dashboard.
ThomThomson added a commit that referenced this pull request Jul 13, 2020
Added a standard method for adding or replacing a panel on a dashboard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dashboard Dashboard related features Feature:Embedding Embedding content via iFrame release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants