stevetracvc opened a new pull request #16591:
URL: https://github.com/apache/superset/pull/16591


   ### SUMMARY
   This is my PR for issue Extra features for Range Filters #16582
   
   Range filters are fantastic, but there is no simple way to adjust the step 
size or the scale of the range. Scale is useful for large ranges, eg a log 
scale, so that you can easily select small and large values
   
   - Step Size is just an additional Advanced Config dropdown box with several 
pre-populated choices, as well as a free form option. The tricky part was 
getting it to properly work in the Native Filter Config modal, since they're 
expecting all parameters to be checkboxes.
   - Scale is a little trickier, but it could possibly be set up as multiple 
options (eg log, power, etc). Currently I implemented a log scale option, which 
would make zeros hard. I'm currently ignoring that :)
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   Config Screen Usage
   ![config screen 
use](https://user-images.githubusercontent.com/70416691/132033938-6d095135-698b-448c-aeb7-2ec359388038.gif)
   
   Log Scale with 0.01 step size
   ![log-scale and 0 01 
step](https://user-images.githubusercontent.com/70416691/132033942-06eda7eb-1f09-49c9-a3bf-847de4848a5e.gif)
   
   Linear Scale with 100k step size
   ![linear-scale and 100k 
step](https://user-images.githubusercontent.com/70416691/132033945-2b592134-3614-4ac4-84eb-d6eb497e9e36.gif)
   
   Config Screen Defaults
   ![config screen 
defaults](https://user-images.githubusercontent.com/70416691/132033950-9f026b6b-b364-465a-81c1-c224869b4c65.png)
   
   
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: Fixes #16582
   - [x] Required feature flags: DASHBOARD_NATIVE_FILTERS, 
DASHBOARD_CROSS_FILTERS
   - [x] 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
   - [x] Introduces new feature or API
   - [ ] Removes existing feature or API
   


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