mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Memoize the common_bootstrap_payload (#21018)
Try patch Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
@@ -62,7 +62,7 @@ from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
from superset.db_engine_specs.mssql import MssqlEngineSpec
|
||||
from superset.exceptions import SupersetException
|
||||
from superset.extensions import async_query_manager
|
||||
from superset.extensions import async_query_manager, cache_manager
|
||||
from superset.models import core as models
|
||||
from superset.models.annotations import Annotation, AnnotationLayer
|
||||
from superset.models.dashboard import Dashboard
|
||||
@@ -1443,6 +1443,8 @@ class TestCore(SupersetTestCase):
|
||||
"""
|
||||
Functions in feature flags don't break bootstrap data serialization.
|
||||
"""
|
||||
# feature flags are cached
|
||||
cache_manager.cache.clear()
|
||||
self.login()
|
||||
|
||||
encoded = json.dumps(
|
||||
|
||||
Reference in New Issue
Block a user