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 2025/07/15 22:43:41 UTC

(superset) branch master updated: fix(sqllab): pass DB id instead of name (#33955)

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 0dc48e9b41 fix(sqllab): pass DB id instead of name (#33955)
0dc48e9b41 is described below

commit 0dc48e9b416c73e445a91881d89ca96ffddce141
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Tue Jul 15 18:43:34 2025 -0400

    fix(sqllab): pass DB id instead of name (#33955)
---
 .../src/components/DatabaseSelector/DatabaseSelector.test.tsx           | 2 +-
 superset-frontend/src/components/DatabaseSelector/index.tsx             | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx b/superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
index e24ce99c1a..f8d0425c5e 100644
--- a/superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
+++ b/superset-frontend/src/components/DatabaseSelector/DatabaseSelector.test.tsx
@@ -353,7 +353,7 @@ test('Sends the correct db when changing the database', async () => {
   await waitFor(() =>
     expect(props.onDbChange).toHaveBeenCalledWith(
       expect.objectContaining({
-        id: `mysql-test-mysql-2`,
+        value: 2,
         database_name: 'test-mysql',
         backend: 'mysql',
       }),
diff --git a/superset-frontend/src/components/DatabaseSelector/index.tsx b/superset-frontend/src/components/DatabaseSelector/index.tsx
index 7f7eb792bd..87b915f784 100644
--- a/superset-frontend/src/components/DatabaseSelector/index.tsx
+++ b/superset-frontend/src/components/DatabaseSelector/index.tsx
@@ -196,7 +196,6 @@ export function DatabaseSelector({
               />
             ),
             value: row.id,
-            id: `${row.backend}-${row.database_name}-${row.id}`,
             database_name: row.database_name,
             backend: row.backend,
             allow_multi_catalog: row.allow_multi_catalog,