john-bodley opened a new issue #10833: URL: https://github.com/apache/incubator-superset/issues/10833
The same table selector component is used in both SQL Lab and the Datasource Editor for selecting the database, schema, and table. The issue is the same [filiters](https://github.com/apache/incubator-superset/blob/master/superset-frontend/src/components/TableSelector.jsx#L287-L292) are used for both which excludes databases which are not exposed in SQL Lab (I believe the component was primarily added for SQL Lab). This is problematic for the Datasource Editor if the underlying database is not exposed in SQL Lab and thus the database/schema fields are empty. ### Expected results The table selector should show all the databases. ### Actual results The table selector only shows the databases which are exposed in SQL Lab. #### Screenshots <img width="403" alt="Screen Shot 2020-09-10 at 3 32 41 PM" src="https://user-images.githubusercontent.com/4567245/92816972-f1696f80-f37a-11ea-8770-3938a8dcee62.png"> #### How to reproduce the bug 1. Go to a chart backed by a database not exposed in SQL Lab. 2. Click on "Edit Datasource" -> "Settings". 3. Observe that the database/schema fields are empty. ### Environment (please complete the following information): - superset version: `superset version` - python version: `python --version` - node.js version: `node -v` - npm version: `npm -v` ### Checklist Make sure these boxes are checked before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
