superset icon indicating copy to clipboard operation
superset copied to clipboard

[sql lab] show run button even when no database is selected

Open ascott opened this issue 9 years ago • 3 comments

  • if no database is selected, show run button as disabled
  • maybe choose a database by default on page load

no-run-btns

ascott avatar Dec 15 '16 19:12 ascott

Rather than show the run button as disabled when no database is selected, could we show the run button as disabled only when no database is selected AND no text has been altered in the query window? I want to ensure we support the use case where a user copies and pastes a query into a new tab.

jefffeng avatar Dec 16 '16 07:12 jefffeng

i believe it is a requirement to choose a database before running your query even if you have just pasted a query into the sql editor pane. the sql query should determine the schema and table but does not specify the database afaik, which is why it needs to be choosen from the dropdown.

another option here is to always choose a default db so if the user pastes a query into the editor they will be able to run the query right away. if it's against the wrong db, they should get a useful error message.

ascott avatar Dec 16 '16 22:12 ascott

looks like this was fixed already.

screenshot 2017-02-02 18 27 43

ascott avatar Feb 03 '17 02:02 ascott