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] Remove legacy split in /explore #5533

Conversation

john-bodley
Copy link
Member

This PR removes the unnecessary step of splitting ad-hoc filters into legacy filters for the /explore endpoint. This merely unnecessarily pollutes (in a non-harmful way) the form-data (including that in the URL) with legacy constructs. These clauses are ignored given that the adhoc_filters field is guaranteed to exist (by construction).

Note the only place we currently need to split ad-hoc filters to legacy (base) filters in the BaseViz.query_obj(...) as the query logic still uses the legacy constructs. Note a migration is not needed here given the code correctly converts and then removes the legacy constructs, but could be merited for cleaning up erroneous fields in the form-data.

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

@codecov-io
Copy link

codecov-io commented Aug 1, 2018

Codecov Report

Merging #5533 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5533      +/-   ##
==========================================
- Coverage   63.31%   63.31%   -0.01%     
==========================================
  Files         349      349              
  Lines       22181    22180       -1     
  Branches     2463     2463              
==========================================
- Hits        14044    14043       -1     
  Misses       8123     8123              
  Partials       14       14
Impacted Files Coverage Δ
superset/views/core.py 74.17% <ø> (-0.02%) ⬇️

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 e7d0512...a211a4a. 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.

lgtm

@john-bodley john-bodley merged commit e52518c into apache:master Aug 1, 2018
@john-bodley john-bodley deleted the john-bodley-explore-remove-legacy-filters branch August 1, 2018 16:21
john-bodley added a commit to john-bodley/superset that referenced this pull request Aug 1, 2018
john-bodley added a commit to airbnb/superset-fork that referenced this pull request Aug 1, 2018
[ad-hoc filters] Remove legacy split in /explore (apache#5533)
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.

4 participants