You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/10/31 14:35:39 UTC
(superset) 08/11: fix(sqllab): slow pop datasource query (#25741)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git
commit fbe7e6265dec11da8a653e89e1ac9c2f9416a553
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Thu Oct 26 12:44:41 2023 -0700
fix(sqllab): slow pop datasource query (#25741)
(cherry picked from commit 2a2bc82a8bbf900c825ba44e8b0f3f320b5962e0)
---
superset-frontend/src/SqlLab/actions/sqlLab.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index fbfba6783e..d25689e946 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -1384,8 +1384,14 @@ export function popDatasourceQuery(datasourceKey, sql) {
return function (dispatch) {
const QUERY_TEXT = t('Query');
const datasetId = datasourceKey.split('__')[0];
+
+ const queryParams = rison.encode({
+ keys: ['none'],
+ columns: ['name', 'schema', 'database.id', 'select_star'],
+ });
+
return SupersetClient.get({
- endpoint: `/api/v1/dataset/${datasetId}?q=(keys:!(none))`,
+ endpoint: `/api/v1/dataset/${datasetId}?q=${queryParams}`,
})
.then(({ json }) =>
dispatch(