You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "tanmaykansara (via GitHub)" <gi...@apache.org> on 2024/01/23 11:11:39 UTC

[I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

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

   ### Bug description
   
   `dashboardUiConfig: { // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded (optional) 
   		
   		
   		filters: {
   		expanded: false,
   			visible: false
   		}`
   
   I am using the above mentioned dashboardUIConfig, however the filters screen is still visible. It is not expanded but still not hidden. 
   
   ### How to reproduce the bug
   
   Embedd Dashboard into an iFrame
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   3.1.0
   
   ### Python version
   
   3.10
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] 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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2142996905

   Some screenshots wouldn't hurt here, either. This issue has been open/silent for a long time, so if it's still happening, it seems like a bit of an edge case. PRs would be more than welcome, but it's likely to get closed as stale if nobody is interested in picking it up.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2744501858

   Was tempted to close this as stale (it's been silent quite a while) but I'm still hopeful someone will open a PR if this is still an issue in 4.1.1 or newer. Any takers? Anyone still facing this?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "jayakrishnankk (via GitHub)" <gi...@apache.org>.
jayakrishnankk commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-1921167279

   https://github.com/apache/superset/pull/18741 The changes in this commit are not present in master or 3.x
   
   https://github.com/apache/superset/pull/18741/files#diff-6f2c6562ff1fad0ce405b3507cddff63a25dc91c76fb8613284b9cbb241dd928R36-R38


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "pritammobisoft (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2143035843

   I can't validate whether this is the case, I only use embedded Superset via iframe. But if I understand correctly someone is saying a fix has been merged but it's not in 3.x? In which case yes, this needs to be validated that it's still a problem in 4.0.1.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2142995498

   @Vitor-Avila @sfirke do either of you have an embedded test/example to say whether this is still the case in the latest versions?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "jayakrishnankk (via GitHub)" <gi...@apache.org>.
jayakrishnankk commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-1924271688

   tagging @villebro original PR creator


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2145837401

   Hmm... I'm guessing there's just some conditional rendering with React that's not high enough in the component tree. Have any time/interest in diagnosing? A PR would be welcomed/appreciated, as this doesn't seem to be a top-priority bug for most core committers. Thanks in advance if you can help!


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "tanmaykansara (via GitHub)" <gi...@apache.org>.
tanmaykansara commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2144106818

   +1
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2144124066

   @rusackas Yup, I can also reproduce the issue on my end. Not sure what would be the expectation if the dashboard has horizontal filter bar configured, tho


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila closed issue #26758: Filters.visible= false Still shows the filters on embedded iFrame
URL: https://github.com/apache/superset/issues/26758


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "pritammobisoft (via GitHub)" <gi...@apache.org>.
pritammobisoft commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2143913087

   This is still happening in 4.0.1
   
   ```
   supersetEmbeddedSdk.embedDashboard({
           id: "fef29801-702f-4473-ab93-3dd159030c11",
           supersetDomain: "https://somehost.com",
           mountPoint: document.getElementById("my-superset-container"),
           fetchGuestToken: () => fetchGuestTokenFromBackend(),
           dashboardUiConfig: {
             // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expanded (optional)
             hideTitle: true,
             filters: {
               expanded: false,
               visible: false
             },
           },
         });
   ```
   
   <img width="1219" alt="Screenshot 2024-06-02 at 9 25 49 PM" src="https://github.com/apache/superset/assets/3992068/375d6992-549b-4e52-a85f-2f17386e2869">
   
   As you can see in the image the filter bar is still present even when filters.visible is sent as false. 
   
   <img width="756" alt="Screenshot 2024-06-02 at 9 29 49 PM" src="https://github.com/apache/superset/assets/3992068/d863da62-9efa-45ea-b9ec-520b79b16e45">
   
   I can see in the network tab show_filters=false is being sent to the backend but for some reason the backend is not respecting it. 


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2150634155

   Nice work, detective! Indeed, there are likely cases where you don't want to show the filters bar, but DO want cross-filters enabled (FYI, that means clicking something like a wedge on a pie chart, which filters the rest of the dashboard based on what you clicked). If anyone wants to open a PR to make the conditional logic in Superset a little better and make these features work more independently of one another, it would be appreciated!


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "tanmaykansara (via GitHub)" <gi...@apache.org>.
tanmaykansara commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-1921483091

   I am not sure what the right action is, but can someone please tackle this ?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Filters.visible= false Still shows the filters on embedded iFrame [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on issue #26758:
URL: https://github.com/apache/superset/issues/26758#issuecomment-2773691686

   I've updated https://github.com/apache/superset/pull/29422, hoping to get it merge soon to close this one as fixed! 🙌 


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org