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 2021/03/17 02:19:15 UTC

[superset] branch master updated: fix(sqllab): Table name and schema are encoded twice during fetching table metadata on SQL Lab page. (#13636)

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

beto 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 72d19b6  fix(sqllab): Table name and schema are encoded twice during fetching table metadata on SQL Lab page. (#13636)
72d19b6 is described below

commit 72d19b6b35eeae141565e7fbd308632f2fb11775
Author: Dmytro Mudrov <dm...@gmail.com>
AuthorDate: Wed Mar 17 04:18:08 2021 +0200

    fix(sqllab): Table name and schema are encoded twice during fetching table metadata on SQL Lab page. (#13636)
    
    Co-authored-by: dmitry.mudrov <dm...@agileengine.com>
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index b6b16e9..02a523a 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -980,10 +980,7 @@ export function mergeTable(table, query) {
 function getTableMetadata(table, query, dispatch) {
   return SupersetClient.get({
     endpoint: encodeURI(
-      `/api/v1/database/${query.dbId}/table/` +
-        `${encodeURIComponent(table.name)}/${encodeURIComponent(
-          table.schema,
-        )}/`,
+      `/api/v1/database/${query.dbId}/table/${table.name}/${table.schema}/`,
     ),
   })
     .then(({ json }) => {