dosubot[bot] commented on issue #36053: URL: https://github.com/apache/superset/issues/36053#issuecomment-3511066855
<!-- Greeting --> Hi @rauno-plg! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The backend for GET /api/v1/dashboard/{pk}/filter_state/{key} just returns whatever filter state was cached by the frontend—it doesn't add or remove properties like "name" itself. If the "name" property is missing on the first request but appears after you change a filter, it's likely because the frontend didn't include "name" in the initial filter state payload, but does after a filter update. This means the issue is probably with how the frontend constructs and sends the filter state, not the backend API logic. If you want "name" to always be present, check how your dashboard's filter state is initialized and ensure the frontend includes it in the payload from the start. For more details, see the backend implementation [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/commands/dashboard/filter_state/get.py#L28-L42). <!-- 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/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e6e1c46c-65fe-4ced-8272-248d297a94a1?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/36053) -- 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]
