Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only refreshing non instant filters on apply #3893

Merged

Conversation

michellethomas
Copy link
Contributor

If instant filter is turned off for filter_box the filters get refreshed in the reducer on changeFilter not clickApply. clickApply should be not changing any of the filters but setting refresh to true. But on the dashboard side we check to see that the filters have changed and refresh is set to true before we refresh the slices.

This changes the filter box logic so it only updates state when you clickApply on a filter.

Also I believe newFilter in the reducer should be an object where the col name maps to the filter values. Currently we are just setting newFilter to the result of d3.merge (which is a list or string).

Solves issue #3888

@michellethomas
Copy link
Contributor Author

@graceguo-supercat graceguo-supercat merged commit a84bd52 into apache:master Nov 17, 2017
@graceguo-supercat
Copy link

LGTM

michellethomas added a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants