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

[ad-hoc filters] Fixing legacy conversion #5589

Merged

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Aug 8, 2018

This PR fixes an issue where previously the assumption was that the presence of the adhhoc_filters field in the form data informed that it should trump (and remove) any legacy filters, however it's been brought to our attention that the field could have been previously defined.

The solution is to convert legacy filters if i) the adhoc_filters field is undefined or ii) the associated value is None or an empty list, i.e., falsy.

to: @GabeLoins @graceguo-supercat @michellethomas @mistercrunch

@john-bodley john-bodley force-pushed the john-bodley-fix-convert-legacy-filters branch from ec204b5 to 4cdbd98 Compare August 9, 2018 00:18
@mistercrunch
Copy link
Member

LGTM

@john-bodley john-bodley merged commit d1ef81f into apache:master Aug 10, 2018
@john-bodley john-bodley deleted the john-bodley-fix-convert-legacy-filters branch August 10, 2018 17:27
john-bodley added a commit to john-bodley/superset that referenced this pull request Aug 13, 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.28.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.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants