You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/06/20 17:57:16 UTC

[superset] branch master updated: fix: Revert to old endpoint temporarily to enable sharing saved queries (#24434)

This is an automated email from the ASF dual-hosted git repository.

hugh 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 86ce440833 fix: Revert to old endpoint temporarily to enable sharing saved queries (#24434)
86ce440833 is described below

commit 86ce4408335e73b0d96443907b70d04c7ad85985
Author: Jack Fragassi <jf...@gmail.com>
AuthorDate: Tue Jun 20 10:57:08 2023 -0700

    fix: Revert to old endpoint temporarily to enable sharing saved queries (#24434)
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index 708f9a3346..8b908d2666 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -1372,12 +1372,11 @@ export function popStoredQuery(urlId) {
 export function popSavedQuery(saveQueryId) {
   return function (dispatch) {
     return SupersetClient.get({
-      endpoint: `/api/v1/saved_query/${saveQueryId}`,
+      endpoint: `/savedqueryviewapi/api/get/${saveQueryId}`,
     })
       .then(({ json }) => {
         const queryEditorProps = {
           ...convertQueryToClient(json.result),
-          dbId: json.result?.database?.id,
           loaded: true,
           autorun: false,
         };