You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2023/05/09 01:15:36 UTC
[superset] 01/01: chore: mark explore_json as deprecated in 3.0
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch deprecate_explore_json
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 88a5d35a39c9c7633bde53ff709e8cc3b54d340f
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Mon May 8 18:14:38 2023 -0700
chore: mark explore_json as deprecated in 3.0
---
superset/views/core.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/superset/views/core.py b/superset/views/core.py
index ff5b2f631f..dc0a247dcd 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -568,6 +568,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
@permission_name("explore_json")
@expose("/explore_json/data/<cache_key>", methods=("GET",))
@check_resource_permissions(check_explore_cache_perms)
+ @deprecated(eol_version="3.0")
def explore_json_data(self, cache_key: str) -> FlaskResponse:
"""Serves cached result data for async explore_json calls
@@ -615,6 +616,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
@expose("/explore_json/", methods=EXPLORE_JSON_METHODS)
@etag_cache()
@check_resource_permissions(check_datasource_perms)
+ @deprecated(eol_version="3.0")
def explore_json(
self, datasource_type: Optional[str] = None, datasource_id: Optional[int] = None
) -> FlaskResponse: