mirror of
https://github.com/apache/superset.git
synced 2026-07-27 17:12:36 +00:00
fix(FiltersBadge): world map wont show filter icon after refresh page (#37260)
(cherry picked from commit 88a14f2ba0)
This commit is contained in:
@@ -98,6 +98,18 @@ class QueryContextProcessor:
|
||||
force_cached=force_cached,
|
||||
)
|
||||
|
||||
# If cache is loaded but missing applied_filter_columns and query has filters,
|
||||
# treat as cache miss to ensure fresh query with proper applied_filter_columns
|
||||
if (
|
||||
query_obj
|
||||
and cache_key
|
||||
and cache.is_loaded
|
||||
and not cache.applied_filter_columns
|
||||
and query_obj.filter
|
||||
and len(query_obj.filter) > 0
|
||||
):
|
||||
cache.is_loaded = False
|
||||
|
||||
if query_obj and cache_key and not cache.is_loaded:
|
||||
try:
|
||||
if invalid_columns := [
|
||||
|
||||
Reference in New Issue
Block a user