dosubot[bot] commented on issue #37393:
URL: https://github.com/apache/superset/issues/37393#issuecomment-3825203741

   <!-- Answer -->
   The expected behavior in Superset 6.0.0 is that dependent filters with 
"Select first filter value as default" should auto-select the first value after 
parent filters are set, thanks to the fix in [PR 
#34137](https://github.com/apache/superset/pull/34137). However, there are some 
important caveats: child filters do not automatically reset when a parent 
changes, and clearing filters only resets the UI until you click "Apply" to 
update visuals and charts—this separation is intentional in 6.0.0 
([reference](https://github.com/apache/superset/issues/37069#issuecomment-3741966730)).
   
   Common pitfalls include missing default values for required filters, using a 
custom dashboard theme (which can break filter application), and the fact that 
options like `enableEmptyFilter` and `defaultToFirstItem` do not force child 
filters to reset when parents change 
([reference](https://github.com/apache/superset/discussions/35245)). If you 
want "Clear All" to immediately reset visuals, you can modify the 
`handleClearAll` function to dispatch updates for each filter.
   
   If your dependent filters still don't work, please share your filter 
configuration JSON and dashboard setup, or describe the exact steps to 
reproduce the issue—this will help pinpoint if it's a new bug or a 
misconfiguration.
   
   
   <!-- 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/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/02cc332a-8803-4907-ab49-9f04ce7176d5?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20expected%20behavior%20in%20Superset%206.0.0%20is%20that%20dependent%20filters%20with%20%22Select%20first%20filter%20value%20as%20default%22%20should%20auto-select%20the%20first%20value%20after%20parent%20filters%20are%20set%2C%20thanks%20to%20the%20fix%20in%20%5BPR%20%2334137%5D%28https%3A//github.com/apache/superset/pull/34137%29.%20However%2C%20there%20are%20some%20important%20caveats%3A%20child%20filters%20do%20not%20automatically%20reset%20when%20a%20parent%20changes%2C%20and%20clearing%20filters%20only%20resets%20the%20UI%20until%20you%20click%20%22Apply%22%20to%20update%20visuals%20and%20charts%E2%80%94this%20separation%20is%20intentional%20in%206.0.0%20%28%5Breference%5D%28https%3A//github.com/apache/superset/issues/37069%23issuecommen
 
t-3741966730%29%29.%0A%0ACommon%20pitfalls%20include%20missing%20default%20values%20for%20required%20filters%2C%20using%20a%20custom%20dashboard%20theme%20%28which%20can%20break%20filter%20application%29%2C%20and%20the%20fact%20that%20options%20like%20%60enableEmptyFilter%60%20and%20%60defaultToFirstItem%60%20do%20not%20force%20child%20filters%20to%20reset%20when%20parents%20change%20%28%5Breference%5D%28https%3A//github.com/apache/superset/discussions/35245%29%29.%20If%20you%20want%20%22Clear%20All%22%20to%20immediately%20reset%20visuals%2C%20you%20can%20modify%20the%20%60handleClearAll%60%20function%20to%20dispatch%20updates%20for%20each%20filter.%0A%0AIf%20your%20dependent%20filters%20still%20don%27t%20work%2C%20please%20share%20your%20filter%20configuration%20JSON%20and%20dashboard%20setup%2C%20or%20describe%20the%20exact%20steps%20to%20reproduce%20the%20issue%E2%80%94this%20will%20help%20pinpoint%20if%20it%27s%20a%20new%20bug%20or%20a%20misconfiguration.)&nbsp;[![Join
 Discord](
 
https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37393)


-- 
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]

Reply via email to