Wetbikeboy2500 opened a new issue, #38341:
URL: https://github.com/apache/superset/issues/38341

   ### Bug description
   
   1. I start with a dashboard with two filters, Filter1 and Filter2, with 
Filter2 dependent on Filter1
   2. I set the FIlter2 to "Select first filter value by default"
   3. I get an error: "Unable to load dashboard
   The following filters have the 'Select first filter value by default' option 
checked and could not be loaded, which is preventing the dashboard from 
rendering: Filter1" which weirdly indicates an issue with filter1. No filters 
are set as required either
   4. Only when I select the a value from both dropdowns and apply it, does the 
error go away
   5. "Clear All" then removes the option for the first filter and the second 
filter does select the first value. This is expected
   6. I can remove the second value filter and it shows all results. This is 
expected as it is not marked as required.
   Starting at 00:30:
   1. When I then go and uncheck "Select first filter value by default" for 
Filter2, I get the error "Unable to load dashboard
   The following filters have the 'Select first filter value by default' option 
checked and could not be loaded, which is preventing the dashboard from 
rendering: Filter1, Filter2". I just removed that setting from FIlter2, and 
Filter1 never had that set, so this does not even make sense.
   2. I can select a value from Filter1, but Filter2 prevents me from selecting 
a value even though it shows 1 option available. Even if I hit apply after 
selecting a value for Filter1, I still cannot select a value for Filter2.
   3. Selecting clear all, then hitting apply removes the error
   
   At no point where any of the filters set as required, but I keep getting 
stuck in weird states where it is requiring me to make an input.
   
   
   ### Screenshots/recordings
   
   
https://github.com/user-attachments/assets/e2923bf5-3545-4602-ab4d-ee574cdcc4df
   
   ### Superset version
   
   6.0.0
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   I am using trino with a hardcoded select for this example:
   SELECT *
   FROM (
       VALUES
       ('FilterA', 'SecondFilterA'),
       ('FilterB', 'SecondFilterB'),
       ('FilterC', 'SecondFilterC'),
   ) AS MyHardcodedData(Filter1, Filter2);
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


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