eschutho opened a new pull request, #21486:
URL: https://github.com/apache/superset/pull/21486

   ### SUMMARY
   Some db_engine_specs can have multiple db_engine_specs, Databricks for 
example. Since we build the database connection form available dbs dropdown 
list based on db_engine_specs that match installed drivers, there are times 
when one may not want to show all options. This is a simple optional blacklist 
config that removes extra db engines from that list. 
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   With this code and no extra config added (this is what it looks like without 
this code): 
   Additional drivers installed:
   databricks-sql-connector          2.0.2
   sqlalchemy-databricks             0.2.0
   
   
![_DEV__Superset](https://user-images.githubusercontent.com/5186919/190514284-13c11a42-d834-489c-9086-d07e901b023f.png)
   
   
   With added local superset_config of: 
   ```
   DBS_AVAILABLE_BLACKLIST: Dict[str, Tuple[str, ...]] = {
       "databricks": ("pyhive", "pyodbc")}
   ```
   
![_DEV__Superset](https://user-images.githubusercontent.com/5186919/190514500-bd8b7c41-b939-48d3-a06b-cf9717a36735.png)
   
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to