kgabryje opened a new pull request #15063:
URL: https://github.com/apache/superset/pull/15063


   ### SUMMARY
   This PR changes the behaviour of hiding native filters out of scope, which 
was originally implemented in https://github.com/apache/superset/pull/14933.
   Before, we considered filters to be "in scope" if they were placed in the 
last clicked tab. This approach presented several issues. The most significant 
issue was that in case of dashboards without top level tabs, there was no way 
to have charts unattached to any tab to be considered in scope once some row 
level tab had been clicked (as the scope was set only by clicking tabs).
   The new proposal, implemented in this PR, is that we consider all visible 
charts to be "in scope". That means that in order to determine if a filter is 
in scope, we no longer check only the last clicked tab, but the whole tabs tree 
of the dashboard. For details, see attached recordings of the new native 
filters behaviour presented on dashboards with (the first video) and without 
(second video) top level tabs
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   Before: see https://github.com/apache/superset/pull/14933
   After:
   
https://user-images.githubusercontent.com/15073128/121371437-d6de1a00-c93d-11eb-9776-5ba53f35ab33.mov
   
https://user-images.githubusercontent.com/15073128/121371703-0ab93f80-c93e-11eb-8b92-3d216a049450.mov
   
   ### TESTING INSTRUCTIONS
   0. Set `DASHBOARD_NATIVE_FILTERS` feature flag to `True`
   1. Create dashboards with tabs (top level and/or row level)
   2. Add some native filters, go crazy with their scopes
   3. Verify that filters that don't have any visible charts in scope are moved 
to "Out of scope" panel
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   CC: @junlincc @villebro @michael-s-molina 


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

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