This is an automated email from the ASF dual-hosted git repository.
aafghahi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 3f7b768c5b depreciated api endpoint (#19524)
3f7b768c5b is described below
commit 3f7b768c5ba48db137f1a617c74a6d750be5a6b4
Author: AAfghahi <[email protected]>
AuthorDate: Tue Apr 5 17:32:16 2022 -0400
depreciated api endpoint (#19524)
---
superset/views/sql_lab.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/superset/views/sql_lab.py b/superset/views/sql_lab.py
index 0e17f46f16..60732fbcd1 100644
--- a/superset/views/sql_lab.py
+++ b/superset/views/sql_lab.py
@@ -14,6 +14,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+import logging
+
import simplejson as json
from flask import g, redirect, request, Response
from flask_appbuilder import expose
@@ -30,6 +32,8 @@ from superset.utils import core as utils
from .base import BaseSupersetView, DeleteMixin, json_success,
SupersetModelView
+logger = logging.getLogger(__name__)
+
class SavedQueryView(SupersetModelView, DeleteMixin):
datamodel = SQLAInterface(SavedQuery)
@@ -318,4 +322,7 @@ class SqlLab(BaseSupersetView):
@has_access
def my_queries(self) -> FlaskResponse: # pylint: disable=no-self-use
"""Assigns a list of found users to the given role."""
+ logger.warning(
+ "This endpoint is deprecated and will be removed in the next major
release"
+ )
return
redirect("/savedqueryview/list/?_flt_0_user={}".format(g.user.get_id()))