Highly requested from the community for a couple of years, Superset's new Dashboard Native Filter and Cascading Filter are finally available, ready for testing in master!! We welcome your feedback and comments!
It has been a six months long collaborative project leading by @suddjian, with the dedicated effort from multiple developers.
Credit goes to the below awesome contributors 鈾ワ笍
@suddjian @villebro @pkdotson @rusackas @mihir174(design)
@agatapst @adam-stasiak
@amitmiran137 @simchaNielsen
special thanks to @graceguo-supercat @ktmud @zuzana-vej for user research and code review!
This feature is currently behind a feature flag, to turn on
docker/pythonpath_dev/superset_config.py FEATURE_FLAGS = {
"DASHBOARD_NATIVE_FILTERS": True,
}
Features include
Changes included in feat(dashboard): Dashboard-Native Filters #11814 and feat: Native filters fast-follow #12138:
Create new filter

Filter scoping

Cascading filter hierarchy setting


Open and Collapse side bar

[assigned:polidea][dashboard]native filter sidebar styling and padding should be consistent with the Data panel in Explore
Data Panel in Explore

Native Filter in Dashboard

[assigned:polidea][dashboard]native filter RESET ALL button does not work properly
[assigned:polidea][dashboard]new native filter loading state should show Superset infinite loading icon instead of "No Results"
[assigned:polidea][dashboard] This looks like the Native Filter and Chart filter indicator do not match.

[dashboard] Timestamp/Datetime-like column is not handled correctly


[assigned:nielsen][dashboard] Apply to specific panels not work.
https://user-images.githubusercontent.com/2016594/102797331-82c09700-43ea-11eb-935b-c31c14825387.mov
@zhaoyongjie thank you for sharing
we will take of it
cc: @junlincc @villebro @simchaNielsen
[assigned:polidea][DASHBOARD]
SCENARIO:
To tabbed dashboard add filter with country name default value: United States
Save
Apply filter With name CHINA
Click on Reset -> Now filter box shows the default value
Click on APPLY -> Default Filter value is not applied
Expected: After click on APPLY it should be current field value applied.
https://user-images.githubusercontent.com/25153919/102827412-cfa06f80-43e2-11eb-9bff-3591138f97ae.mov
[dashboard]
Scenario:
Create Filter with reference to dataset
Delete this dataset
Go back to Filter Configuration and Scoping:
Observed: You can find that *FIELD has looped loading animation with name of not available field. After I choose different datasource I still see this old type of field as an option in field box.
Expected: We should indicate somehow that Filter is malformed(@junlincc) and do not propose not available options to set.
[dashboard]
Steps to reproduce:
Add very long name of filter
Observed: You can see that UI glitches. We should handle this better -> I suggest adding in the left side section "..." at the end of too long names or splitting into lines.
[dashboard]
Weird behavior for me.
When I add two new filters and:
We should indicate that progress will be lost and:
@junlincc I think we should consider options for this.
[dashboard] This looks like the Native Filter and Chart filter indicator do not match.
I agree- > When we set Native Filter set then we can clearly see number indicator so we should place there native filters as well and update the counter
[dashboard]
Default value for filter is not exported with dashboard.
Scenario:
Create Filter with default value.
Export dashboard
Import json file of dashboard
You can see that Default Value for filter was not exported - > Information about Parent relation was exported so I think it should be as well.
[dashboard] Apply to specific panels not work.
Screen.Recording.2020-12-22.at.12.10.32.AM.mov
We will process fix for it in few steps.
[dashboard]
When only 1 option is available in filter then it is displayed 1 option()
