kgabryje commented on code in PR #20743: URL: https://github.com/apache/superset/pull/20743#discussion_r924810070
########## superset-frontend/src/dashboard/actions/hydrate.js: ########## @@ -333,9 +348,21 @@ export const hydrateDashboard = rootPath: [DASHBOARD_ROOT_ID], excluded: [chartId], // By default it doesn't affects itself }, + chartsInScope: Array.from(sliceIds), }, }; } + if ( + behaviors.includes(Behavior.INTERACTIVE_CHART) && + !metadata.chart_configuration[chartId].crossFilters?.chartsInScope + ) { + metadata.chart_configuration[chartId].crossFilters.chartsInScope = Review Comment: Optimization for cross filters (works the same as the one implemented for native filters a few months ago) to speed up finding charts in scope. Also, thanks to that, we don't need to save dashboard layout in local storage -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org