Bug description
- Navigate to Dashboards
- Open the Deck.gl demo dashboard
- Add a multi-layer chart to it and save
- Add a filter to Latitude column of Sample Geodata dataset and save
- Select the first value listed in the filter and apply
- The filter icon will be missing for most of the charts, perhaps the filter was included in their query and affected their view
Might be related to https://github.com/apache/superset/issues/34142
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.11
Node version
18 or greater
Browser
Firefox
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
The filter icon in Superset dashboards is rendered by a shared component (FiltersBadge) that checks if filters are applied to a chart by inspecting the backend query response for applied_filters and rejected_filters. This logic is not chart-type-specific—if the backend doesn't mark filters as applied in the query response, the icon won't show, even if the filter is active and affecting the chart's data. For deck.gl charts, especially multi-layer ones, this can happen if the backend doesn't include the expected applied_filters field in the queriesResponse payload, which seems to be the root cause of the inconsistency you're seeing. There are no open issues directly tracking this bug for deck.gl charts, but similar problems have been noted for other chart types with filter emission and detection. You can confirm this by inspecting the queriesResponse payload for your deck.gl chart in Redux or browser dev tools—if applied_filters is missing or incomplete, that's why the icon isn't shown. The relevant code paths are the FiltersBadge and SliceHeader components on the frontend, and the backend logic that attaches applied_filters to the chart's query result payload (reference, reference). If you confirm that applied_filters is missing for affected deck.gl charts, this would be a backend issue to track.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
Comment From: Prasad-JB
Hi, I noticed that for deck.gl multi-layer charts the applied_filters
field is missing in the queriesResponse
, which seems to be why the filter icon isn’t showing. Other chart types include it, so looks like a backend gap here.
I’d be happy to work on adding the missing applied_filters
for deck.gl queries if that’s the right approach. Could you confirm?
Thanks!
Comment From: msyavuz
@Prasad-JB Yeah, we have some problems with multi-layer chart queries, infinte loading when show query etc. Not sure about the cause though pr's are always welcome.
Comment From: Prasad-JB
Thanks for confirming, I’ll investigate the applied_filters
handling for deck.gl multi-layer charts and share updates soon.