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 issue with legacy filters #5525

Merged

Conversation

john-bodley
Copy link
Member

This PR fixes an issue with #5206. Previously dashboard filters (extra_filters in the form-data defined via the legacy definition) and saved URLs with legacy filter definitions wouldn't be correctly handled in the explorer UI as they weren't included in as part of the ad-hoc filters.

The solution is to convert these filters to ad-hoc filters (be it by transform legacy filters or merging the extra filters) to ensure they're correctly handled in the UI. These filters are then split into the base filters (like previously) to ensure correct handling by the various engines. Note in the future we should migrate away from having legacy filters defined anywhere.

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

Copy link
Contributor

@gabe-lyons gabe-lyons left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for identifying the issue John!

@john-bodley john-bodley force-pushed the john-bodley-fix-legacy-extra-filters branch from 2b4534e to bccc696 Compare July 31, 2018 16:57
@codecov-io
Copy link

codecov-io commented Jul 31, 2018

Codecov Report

Merging #5525 into master will increase coverage by 0.03%.
The diff coverage is 94.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5525      +/-   ##
==========================================
+ Coverage   63.29%   63.32%   +0.03%     
==========================================
  Files         349      349              
  Lines       22151    22175      +24     
  Branches     2459     2459              
==========================================
+ Hits        14020    14042      +22     
- Misses       8117     8119       +2     
  Partials       14       14
Impacted Files Coverage Δ
superset/views/core.py 74.19% <100%> (+0.01%) ⬆️
superset/viz.py 77.42% <100%> (+0.01%) ⬆️
superset/utils.py 89.18% <93.93%> (+0.07%) ⬆️

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 c1e6c68...3df59ff. Read the comment docs.

@john-bodley john-bodley force-pushed the john-bodley-fix-legacy-extra-filters branch from bccc696 to 3df59ff Compare July 31, 2018 20:00
@john-bodley john-bodley merged commit 47e3c41 into apache:master Jul 31, 2018
john-bodley added a commit to john-bodley/superset that referenced this pull request Jul 31, 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.

4 participants