-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Preselect filters #752
Merged
Merged
Preselect filters #752
Conversation
This file contains 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
var endpoint = parser.pathname + this.querystring(); | ||
var endpoint = parser.pathname + this.querystring({ | ||
extraFilters: params.extraFilters | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indent seems off on 236 and 237
This is a great feature that was on my TODO list. Thanks for tackling it! |
Would be great if we can define preselect_filters in the slice/dashboard definition itself |
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 17, 2021
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 24, 2021
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 25, 2021
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 26, 2021
This was referenced Dec 15, 2021
mistercrunch
added
🏷️ bot
A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels
🚢 0.11.0
labels
Feb 19, 2024
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.
In a dashboard, after the user select a filter in a filter box, the GET parameter "preselect_filters" in the URL will be updated. The user can bookmark this URL in the browser. So every time the user enter this URL, the user can see filter pre-selected.
For example, go to
/caravel/dashboard/world_health/?preselect_filters=%7B%0A%20%20%20%20%222%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22country_name%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22United%20States%22%0A%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%0A%7D
, you can see the World's Health Bank Dashboard with the country_name = "United States" chosen in the Region Filter.