-
Notifications
You must be signed in to change notification settings - Fork 16.7k
fix(componentParent): Newly created tabs don't show up in Scoping tab #37807
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
base: master
Are you sure you want to change the base?
Conversation
… in filters edit mode
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
msyavuz
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!
|
🎪 Showtime deployed environment on GHA for 58fa17d • Environment: http://16.148.104.66:8080 (admin/admin) |
Code Review Agent Run #b9fa2cActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
When users create tabs or move components in dashboard edit mode, the
parentsarray on layout items was not being updated. Theparentsarray tracks the ancestry chain of each component (e.g., a chart inside a tab would haveparents: ["ROOT_ID", "TABS_ID", "TAB_ID"]).The
updateComponentParentsListfunction that rebuilds these arrays was only called when saving the dashboard (viasaveDashboardRequest). This meant:parentsarraysparents→ works correctlySolution
Call
updateComponentParentsListin the mainlayoutReducerfunction after any layout action that modifies the state. This ensuresparentsarrays are always up-to-date immediately after any layout change.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
Screen.Recording.2026-02-10.at.14.09.58.mov
AFTER
Screen.Recording.2026-02-10.at.14.07.53.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION