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] Generate new panel ids on Dashboard clone #166299
[Dashboard] Generate new panel ids on Dashboard clone #166299
Conversation
Closing this for now, as this bug is quite small, and the fix is fairly difficult. We can revisit this later if it becomes a priority. |
Pinging @elastic/kibana-presentation (Team:Presentation) |
I'm still experiencing this issue when using a links panel on old auditbeat dashboards vokoscreenNG-2023-10-02_17-35-50.webm |
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! I just have one concern about a test.
code review and verified cloned dashboards generate new panel ids.
...gins/dashboard/public/services/dashboard_content_management/lib/save_dashboard_state.test.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Fixes #166231
This PR ensures that all panels are given new, unique IDs when a dashboard is cloned. This will fix a bug where some panels weren't refreshed properly on navigation, since the "fast dashboard navigation" relies on IDs to be changed in order to handle the logic for deciding which panels need to be rebuilt.
Checklist
For maintainers