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

fix: adhoc filter 'equals' doesn't let you save #9652

Merged

Conversation

mistercrunch
Copy link
Member

before

Screen Shot 2020-04-25 at 7 03 10 PM

after

Screen Shot 2020-04-25 at 7 02 46 PM

Applies to equals and does not equal

@codecov-io
Copy link

codecov-io commented Apr 26, 2020

Codecov Report

Merging #9652 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9652   +/-   ##
=======================================
  Coverage   70.74%   70.74%           
=======================================
  Files         585      585           
  Lines       30429    30429           
  Branches     3115     3114    -1     
=======================================
+ Hits        21526    21527    +1     
+ Misses       8789     8788    -1     
  Partials      114      114           
Flag Coverage Δ
#cypress 53.56% <66.66%> (-0.02%) ⬇️
#javascript 58.88% <100.00%> (+<0.01%) ⬆️
#python 70.92% <100.00%> (ø)
Impacted Files Coverage Δ
superset-frontend/src/explore/AdhocFilter.js 97.26% <100.00%> (+1.36%) ⬆️
superset/sql_parse.py 99.37% <100.00%> (ø)

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 eee6280...9a06251. Read the comment docs.

@mistercrunch mistercrunch force-pushed the fix_adhoc_filter_equals_bug branch 2 times, most recently from 10b4e99 to bfb14f2 Compare April 26, 2020 02:47
@mistercrunch mistercrunch added the !deprecated-label:bug Deprecated label - Use #bug instead label Apr 26, 2020
@mistercrunch mistercrunch force-pushed the fix_adhoc_filter_equals_bug branch from bfb14f2 to b4b73a1 Compare April 26, 2020 03:29
@mistercrunch mistercrunch force-pushed the fix_adhoc_filter_equals_bug branch 2 times, most recently from 8b66de2 to 07255fc Compare May 6, 2020 04:25
When altering a filter, when using `equals` or `does not equals`,
the save button is disabled even when it should be enalbed.
@mistercrunch mistercrunch force-pushed the fix_adhoc_filter_equals_bug branch from 07255fc to 9a06251 Compare May 6, 2020 04:42
@@ -45,7 +45,7 @@ combine_as_imports = true
include_trailing_comma = true
line_length = 88
known_first_party = superset
known_third_party =alembic,apispec,backoff,bleach,celery,click,colorama,contextlib2,croniter,cryptography,dataclasses,dateutil,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,geohash,geopy,humanize,isodate,jinja2,markdown,markupsafe,marshmallow,msgpack,numpy,pandas,parsedatetime,pathlib2,polyline,prison,pyarrow,pyhive,pytz,retry,selenium,setuptools,simplejson,sphinx_rtd_theme,sqlalchemy,sqlalchemy_utils,sqlparse,werkzeug,wtforms,wtforms_json,yaml
known_third_party =alembic,apispec,backoff,bleach,celery,click,colorama,contextlib2,croniter,cryptography,dateutil,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,geohash,geopy,humanize,isodate,jinja2,markdown,markupsafe,marshmallow,msgpack,numpy,pandas,parsedatetime,pathlib2,polyline,prison,pyarrow,pyhive,pytz,retry,selenium,setuptools,simplejson,sphinx_rtd_theme,sqlalchemy,sqlalchemy_utils,sqlparse,werkzeug,wtforms,wtforms_json,yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

pre-commit hooks are doing this...

@@ -15,11 +15,11 @@
# specific language governing permissions and limitations
# under the License.
import logging
from dataclasses import dataclass
Copy link
Member Author

Choose a reason for hiding this comment

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

isort was failing

@mistercrunch
Copy link
Member Author

Addressed comments, @villebro or anyone, can a get a formal stamp? Also feel free to merge.

@mistercrunch mistercrunch merged commit 9aabafe into apache:master May 6, 2020
@mistercrunch mistercrunch deleted the fix_adhoc_filter_equals_bug branch May 6, 2020 15:38
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Feb 28, 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 !deprecated-label:bug Deprecated label - Use #bug instead size/M 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants