You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ly...@apache.org on 2023/01/19 16:36:14 UTC
[superset] 20/21: Add filter by database ID to rison in queryParams
This is an automated email from the ASF dual-hosted git repository.
lyndsi pushed a commit to branch lyndsi/enable-dataset-creation
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 900d62784a88a52f48d30aa25679023f7c5a9e64
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Tue Jan 17 15:57:37 2023 -0600
Add filter by database ID to rison in queryParams
---
superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx
index 05ffc3a343..1cb4b0d5ae 100644
--- a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx
+++ b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx
@@ -92,6 +92,7 @@ export default function AddDataset() {
const queryParams = dataset?.schema
? rison.encode_uri({
filters: [
+ { col: 'database', opr: 'rel_o_m', value: dataset?.db?.id },
{ col: 'schema', opr: 'eq', value: encodedSchema },
{ col: 'sql', opr: 'dataset_is_null_or_empty', value: '!t' },
],