mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
refactor: Moves the Explore form_data endpoint (#18151)
* refactor: Moves the Explore form_data endpoint * Removes unused imports * Fixes openapi schema error * Fixes typo * Renames and UPDATING.md
This commit is contained in:
committed by
GitHub
parent
fa104fee9a
commit
f018c826b8
@@ -26,7 +26,7 @@ class CacheManager:
|
||||
self._data_cache = Cache()
|
||||
self._thumbnail_cache = Cache()
|
||||
self._filter_state_cache = Cache()
|
||||
self._chart_form_data_cache = Cache()
|
||||
self._explore_form_data_cache = Cache()
|
||||
|
||||
def init_app(self, app: Flask) -> None:
|
||||
self._cache.init_app(
|
||||
@@ -57,11 +57,11 @@ class CacheManager:
|
||||
**app.config["FILTER_STATE_CACHE_CONFIG"],
|
||||
},
|
||||
)
|
||||
self._chart_form_data_cache.init_app(
|
||||
self._explore_form_data_cache.init_app(
|
||||
app,
|
||||
{
|
||||
"CACHE_DEFAULT_TIMEOUT": app.config["CACHE_DEFAULT_TIMEOUT"],
|
||||
**app.config["CHART_FORM_DATA_CACHE_CONFIG"],
|
||||
**app.config["EXPLORE_FORM_DATA_CACHE_CONFIG"],
|
||||
},
|
||||
)
|
||||
|
||||
@@ -82,5 +82,5 @@ class CacheManager:
|
||||
return self._filter_state_cache
|
||||
|
||||
@property
|
||||
def chart_form_data_cache(self) -> Cache:
|
||||
return self._chart_form_data_cache
|
||||
def explore_form_data_cache(self) -> Cache:
|
||||
return self._explore_form_data_cache
|
||||
|
||||
Reference in New Issue
Block a user