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 <[email protected]>
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 <[email protected]>
---
 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 }) => {

Reply via email to