Bug description
After upgrading from Superset 6.0.0 to 6.1.0, SQL Lab displays databases where expose_in_sqllab = false.
Previously (6.0.0), these databases were correctly hidden from the SQL Lab dropdown, but in 6.1.0 they are shown regardless of the flag.
This breaks setups that rely on dual database configurations (separate DBs for Explore vs SQL Lab).
Screenshots/recordings
-
Create a database with:
expose_in_sqllab = false
-
Create another database with:
expose_in_sqllab = true
-
Ensure user has access to a dataset that uses the hidden DB
-
Open SQL Lab
-
Observe both databases appear in dropdown
Superset version
master / latest-dev
Python version
3.9
Node version
I don't know
Browser
Chrome
Additional context
Expected behavior
Databases with expose_in_sqllab = false should NOT appear in SQL Lab database selector.
Actual behavior
Databases appear in SQL Lab dropdown even when:
- expose_in_sqllab = false
- correctly stored in metadata DB
Additional context
- API /api/v1/database returns entries with expose_in_sqllab=false
- SQL Lab frontend does not filter them out
- Role-based filtering is working correctly, but expose_in_sqllab is ignored
Checklist
Bug description
After upgrading from Superset 6.0.0 to 6.1.0, SQL Lab displays databases where expose_in_sqllab = false.
Previously (6.0.0), these databases were correctly hidden from the SQL Lab dropdown, but in 6.1.0 they are shown regardless of the flag.
This breaks setups that rely on dual database configurations (separate DBs for Explore vs SQL Lab).
Screenshots/recordings
Create a database with:
expose_in_sqllab = false
Create another database with:
expose_in_sqllab = true
Ensure user has access to a dataset that uses the hidden DB
Open SQL Lab
Observe both databases appear in dropdown
Superset version
master / latest-dev
Python version
3.9
Node version
I don't know
Browser
Chrome
Additional context
Expected behavior
Databases with expose_in_sqllab = false should NOT appear in SQL Lab database selector.
Actual behavior
Databases appear in SQL Lab dropdown even when:
Additional context
Checklist