pritammobisoft commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2150619325

   Debugged this a bit today:
   
   The root cause is this line from file: 
`superset/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx`
   
   ```
   const showFilterBar = (crossFiltersEnabled || nativeFiltersEnabled) && 
!editMode;
   ```
   
   Here if `crossFiltersEnabled` true, setting  `nativeFiltersEnabled` false 
has no effect. 
   
   `crossFiltersEnabled` is declared like this:
   
   ```
   const crossFiltersEnabled = isFeatureEnabled(
       FeatureFlag.DashboardCrossFilters,
     );
   ```
   
   So just by disabling `DashboardCrossFilters` feature I could get the 
`filters.visible` to work properly. 
   
   Being very new to SuperSet I don't even know what the 
`DashboardCrossFilters` feature is :-)
   
   If those reading this also want to disable this feature in you need to add 
following to your `superset_config.py`:
   
   ```
   FEATURE_FLAGS = {
       "EMBEDDED_SUPERSET": True,
       "DASHBOARD_CROSS_FILTERS": False
   }
   ```
   
   But for those who need `DASHBOARD_CROSS_FILTERS` feature, proper handling of 
above flags is needed in the code. 


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