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] Refresh container after clone panel is complete #65252

Merged
merged 1 commit into from
May 5, 2020

Conversation

majagrubic
Copy link
Contributor

@majagrubic majagrubic commented May 5, 2020

Summary

Fixes: #64521

It's possible that the values in the visualization changed since the last dashboard refresh, so when cloning the panel the values would be in discrepancy, as described in the issue above. This small fix causes the dashboard container to refresh, syncing the values after the clone is complete:

dashobard_refresh

I tested this by loading the dashboard and then updating the necessary values in ES from dev console, eg:
Screenshot 2020-05-05 at 13 24 17

and then cloning the panel.

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, including a check against IE11

For maintainers

@majagrubic majagrubic added v7.8.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels May 5, 2020
@majagrubic majagrubic marked this pull request as ready for review May 5, 2020 13:57
@majagrubic majagrubic requested review from a team and ThomThomson May 5, 2020 13:57
@majagrubic majagrubic added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label May 5, 2020
@elasticmachine
Copy link
Contributor

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

@majagrubic majagrubic added the Feature:Dashboard Dashboard related features label May 5, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything LGTM.

Tested locally on Chrome 81 on osx. Tested via adding a few more docs to the kibana_sample_data_ecommerce index in dev tools, then cloning a panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dashboard Dashboard related features release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Duplicate panel feature - need to refresh after cloning the panel
4 participants