-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load #230842
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
Conversation
…psed section that are closed on page load
|
/ci |
|
/ci |
💚 Build Succeeded
Metrics [docs]Async chunks
|
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
nickpeihl
left a comment
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! code review and confirmed that it fixes the bug with duplicating panels when there is a collapsed section.
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16788552547 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…psed section that are closed on page load (elastic#230842) Closes elastic#230818 PR updates getChildApi with logic to return `undefined` if panel is in a collapsed section. (cherry picked from commit 3095ceb) # Conflicts: # src/platform/plugins/shared/dashboard/public/dashboard_api/layout_manager/layout_manager.test.ts
…psed section that are closed on page load (elastic#230842) Closes elastic#230818 PR updates getChildApi with logic to return `undefined` if panel is in a collapsed section. (cherry picked from commit 3095ceb) # Conflicts: # src/platform/plugins/shared/dashboard/public/dashboard_api/layout_manager/layout_manager.test.ts
… collapsed section that are closed on page load (#230842) (#230875) # Backport This will backport the following commits from `main` to `9.1`: - [[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)](#230842) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-08-06T21:05:19Z","message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load","number":230842,"url":"https://github.com/elastic/kibana/pull/230842","mergeCommit":{"message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230842","number":230842,"mergeCommit":{"message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…s collapsed section that are closed on page load (#230842) (#230877) # Backport This will backport the following commits from `main` to `8.19`: - [[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)](#230842) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-08-06T21:05:19Z","message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load","number":230842,"url":"https://github.com/elastic/kibana/pull/230842","mergeCommit":{"message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230842","number":230842,"mergeCommit":{"message":"[dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)\n\nCloses https://github.com/elastic/kibana/issues/230818\n\nPR updates getChildApi with logic to return `undefined` if panel is in a\ncollapsed section.","sha":"3095cebf0680288689a5fe9d9bd1a3f99146be98"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…psed section that are closed on page load (elastic#230842) Closes elastic#230818 PR updates getChildApi with logic to return `undefined` if panel is in a collapsed section.
…psed section that are closed on page load (elastic#230842) Closes elastic#230818 PR updates getChildApi with logic to return `undefined` if panel is in a collapsed section.
|
This is a good temporary solution, but the Could we update it to get the titles from the Dashboard state directly rather than going through the embeddable APIs? This should be okay as the intention is to get only Dashboard panel titles, not saved object titles. |
I don't think dashboard should reach into embeddable state because there is no guarantee which key is used to saved titles. An embeddable could use its own implementation and its own key to store the title. Maybe getTitles should only return titles from the current section? |
|
Ah true, I forgot we had moved titles into the embeddable config. Getting titles from the current section could be a good workaround. |
…psed section that are closed on page load (elastic#230842) Closes elastic#230818 PR updates getChildApi with logic to return `undefined` if panel is in a collapsed section.
Closes #230818
PR updates getChildApi with logic to return
undefinedif panel is in a collapsed section.