graceguo-supercat opened a new issue #16825:
URL: https://github.com/apache/superset/issues/16825
A clear and concise description of what the bug is.
### Expected results
Remove parent filter should update all its children filters.
#### How to reproduce the bug
1. create dashboard from baby_names dataset. Add a few filters. For
example, add Gender filter, State filter, Number filter, and set number
filter's parent filter is State filter.
2. Load dashboard.
3. Remove State filter.
4. In dashboard filter bar, you don't see State filter or Number filter. But
number filter is still in dashboard's metadata, and it also shows in Filter
Sets:
```
{
"id": "NATIVE_FILTER-1VxgvI-iF",
"controlValues": {
"multiSelect": true,
"enableEmptyFilter": false,
"defaultToFirstItem": false,
"inverseSelection": false,
"searchAllOptions": false
},
"name": "Number Filter",
"filterType": "filter_select",
"targets": [{"datasetId": 2, "column": {"name": "num"}}],
"defaultDataMask": {
"extraFormData": {},
"filterState": {},
"ownState": {}
},
"cascadeParentIds": ["NATIVE_FILTER-wvlKEa4U5"],
"scope": {"rootPath": ["ROOT_ID"], "excluded": []},
"chartsInScope": [133],
"tabsInScope": []
}
```
<img width="1230" alt="Screen Shot 2021-09-23 at 7 04 53 PM"
src="https://user-images.githubusercontent.com/27990562/134607425-ccd74755-3e18-484b-a5ed-a3cadd66d8b1.png">
<img width="1234" alt="Screen Shot 2021-09-23 at 7 04 40 PM"
src="https://user-images.githubusercontent.com/27990562/134607437-5f4518d3-4833-46cd-aa6b-d7105db672b5.png">
### Environment
latest master
### Additional context
cc @m-ajay @michael-s-molina @junlincc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]