Repository navigation
[Feature] Dashboard scoped filter - #8590
Merged
Merged
Conversation
added 5 commits
November 13, 2019 13:49
* filter scope selector modal * add single-field-edit in multi-edit mode switch * fix code review comments (round 1) * refactory after design review * fix a few props initial value
…ed ids to scope object (#8564) * convert ids to scope object * use lodash helpers to make code readable
…to dashboard redux state (#8522) * merge filter scope settings into dashboard redux state * fix/add unit tests * minor bug fixes * fix save filter Scopes behavior * resolve review comments * fix save filter scope settings * minor comments
* improve scroll inside modal * make left pane and right pane scroll separately * fix review comments
etr2460
approved these changes
Nov 18, 2019
etr2460
left a comment
Member
There was a problem hiding this comment.
this has been reviewed when merging into the feature branch, so this should be good to go!
Member
This was referenced Nov 19, 2019
|
Is this feature available on latest version on pypi? Seems to be missing there |
|
This feature looks amazing, congrats! |
qfcwell
pushed a commit
to qfcwell/superset
that referenced
this pull request
May 12, 2026
* [WIP][dashboard scoped filter] part 1: scope selector modal (apache#8557) * filter scope selector modal * add single-field-edit in multi-edit mode switch * fix code review comments (round 1) * refactory after design review * fix a few props initial value * [WIP][dashboard scoped filter] part 2: add algorithm to convert checked ids to scope object (apache#8564) * convert ids to scope object * use lodash helpers to make code readable * [WIP][dashboard scoped filter] part 3: merge filter scope settings into dashboard redux state (apache#8522) * merge filter scope settings into dashboard redux state * fix/add unit tests * minor bug fixes * fix save filter Scopes behavior * resolve review comments * fix save filter scope settings * minor comments * [dashboard scoped filter] Improve scrollbar inside modal (apache#8553) * improve scroll inside modal * make left pane and right pane scroll separately * fix review comments * force show filter_box as unchecked (apache#8587)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

CATEGORY
Choose one
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

With the growing size of the dashboard, user may want to apply one dashboard filter to some of charts in dashboard, and one filter apply to another set of charts. A very common use case is user groups similar charts in different tabs, and make a filter only applicable for this group. Currently the way to set filter's scope is not very easy to use:
After:
Start filter scope selector:

User can edit a single filter, or edit multiple filter fields all together. We also allow user toggle back to a single filter field in the multi-edit mode:

Search chart name:

When new chart is added to dashboard, based on its layout position, it will get filters that are applicable to its tab(s):

When user move charts between tabs, this may cause chart to be applicable to different filter(s). We will show a warning message when chart is moved to a different filter scope.

TEST PLAN
CI and manual test.
REVIEWERS
@etr2460 @kristw @mistercrunch @willbarrett @betodealmeida