villebro opened a new pull request #15427: URL: https://github.com/apache/superset/pull/15427
### SUMMARY This PR adds support for opening a dashboard with predefined filters passed via URL params. When clicking on "Copy dashboard URL" or "Share dashboard by email" in the Dashboard menu, a shortcut to an URL with RISON encoded filter state is created, which can be used to share the currently selected filters. ### SCREENSHOTS When opening up the link, the dashboard opens up with the predefined filter selection. Notice `native_filters` in the URL params:  ### TESTING INSTRUCTIONS 1. Open a dashboard with native filters 2. Select a few filters 3. Click "Copy dashboard URL" or "Share dashboard by email" 4. Open the link and notice the dashboard opening with the previously selected filters. (please note: the prepopulated URL will reference port 8088 when in `dev-server` mode. So remember to manually update this to 9000 when testing locally) ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [x] Has associated issue: closes #14918 - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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]
