dosubot[bot] commented on issue #35884: URL: https://github.com/apache/superset/issues/35884#issuecomment-3460858298
<!-- Answer --> The preselect_filters parameter in urlParams does not work for native filters in embedded Superset dashboards. This mechanism only applies to legacy filter_box charts. For native filters, Superset v5.0.0 only recognizes native_filters, native_filters_key, or permalink_key URL parameters for initializing filter values in embedded dashboards. To preselect native filters, use one of these supported parameters instead of preselect_filters in your embedding script. If you need to preselect native filter values, consider generating a permalink with the desired filter state or passing native_filters/native_filters_key in the URL params. This is a common source of confusion for users migrating from older filter_box dashboards or referencing outdated examples. References: - [Superset Embedded SDK passes urlParams but does not process preselect_filters for native filters](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-embedded-sdk/src/index.ts) - [Dashboard initialization only looks at native_filters, native_filters_key, or permalink_key](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/containers/DashboardPage.tsx) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/cf163c21-a815-489a-9fc3-6c0240319b3b?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35884) -- 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]
