rafalpas opened a new issue #19026: URL: https://github.com/apache/superset/issues/19026
If DASHBOARD_NATIVE_FILTERS and VERIONED_EXPORT flags are enabled, when exporting a dashboard that uses legacy filter boxes with customized scopes (e.g. some filters are ignored by some charts), the information about scopes is lost - it is not present in the export package. Therefore after reimporting the dashboard all filter boxes affect all charts. #### How to reproduce the bug 1. Create dashboard that includes two charts and one legacy filter box that affects both charts. 2. Modify the dashboard json properties so that one of the charts is immune to the filter (this is configured by modifying the "filter_scopes" section - ID of the chart must be added to the "immune" array under ID of the filter) 3. Export the dashboard 4. Reimport the dashboard 5. Open the dashboard and click on the filter ### Expected results The filter affects only one chart - the chart configured to ignore the filter is not highlighted and is not refreshed when the filter state changes ### Actual results The filter affects both charts - both are highlighted and refreshed when the filter state changes #### Screenshots none added ### Environment - browser type and version: Microsoft Edge 98.0.1108.62 - superset version: 1.4.1 - python version: `python --version` - node.js version: `node -v` - any feature flags active: VERSIONED_EXPORT, DASHBOARD_NATIVE_FILTERS ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context It seems that exporting dashboards that use legacy filter boxes works correctly only if the DARHBOARD_NATIVE_FILTERS. But then dashboards that use native filters do not work. There seem to be no way for both to work together. This makes it difficult to handle transition from legacy filter boxes to dashboard native filters, where some dashboards still use legacy solution and some are already ported to dashboard native filters, as exporting, e.g. for backup purposes is unreliable. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
