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

[Explore][Adhoc Filters] empty lists are invalid comparators #5160

Conversation

gabe-lyons
Copy link
Contributor

Thanks to @michellethomas for reporting. Previously it was valid to add a simple filter formatted as column in () or NOT column in (). These are both relatively useless clauses as the first will always evaluate to true and the second will always evaluate to false. I added a check to prevent this filters from being added.

Now the button will be disabled if the comparator is an empty list:

image

test plan:

  • tried to add a column in () simple filter and verified I could not
  • ran the specs

@michellethomas @john-bodley @graceguo-supercat @mistercrunch

@codecov-io
Copy link

Codecov Report

Merging #5160 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5160   +/-   ##
=======================================
  Coverage   77.47%   77.47%           
=======================================
  Files          44       44           
  Lines        8741     8741           
=======================================
  Hits         6772     6772           
  Misses       1969     1969

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57e1256...6b28c08. Read the comment docs.

Copy link
Contributor

@michellethomas michellethomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo! lgtm thanks so much for doing this!

@john-bodley john-bodley merged commit 5b35f75 into apache:master Jun 7, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request Jun 7, 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.26.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.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants