Incubator-superset: SQL should display "query preview" by default when user selects schema & table (past behavior)

Created on 19 Oct 2020  路  11Comments  路  Source: apache/incubator-superset

In the past when user selects schema and table name, SQL Lab displays list of columns on the left side and switches automatically to "Preview tab", so that the user can preview the data immediately. After the recent changes in SQL Lab, the default tab stays at "Results" (which are SQL Lab query results) so user needs to make an extra click to switch to the preview tab to preview their data.

Expected results

Tab automatically switches to "Preview: table-name"

Actual results

Tab remains as "Results"

Screenshots

  1. user selects schema & table
    Screen Shot 2020-10-19 at 9 10 13 AM

  2. Default tab should change to "Preview: table-name" (this was past behavior)
    Screen Shot 2020-10-19 at 9 10 20 AM

How to reproduce the bug

  1. Go to SQL Lab
  2. Select schema in the picker on left side
  3. Select table name
  4. List of columns loads properly; the tab stays at "Results" instead of switching to "Preview" so that user can preview data

Environment

(please complete the following information):

  • superset version: master

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • [ ] 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.
#bug .SQLLab request

Most helpful comment

@zuzana-vej @mistercrunch Here's a fix: https://github.com/apache/incubator-superset/pull/11343

All 11 comments

Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@junlincc this could be related to recent antd <Tab/> work by @kgabryje (?)

I'll check it out!

@zuzana-vej @mistercrunch Here's a fix: https://github.com/apache/incubator-superset/pull/11343

@kgabryje thank you!

Fix merged!

I am still seeing the issue. Switching tabs works. But in the past, when user selects a table name on left side from the schema, it automatically switched to the tab with the preview. Currently the tab shows up, but user needs to manually switch.

Is this new behavior as designed or a bug?

Image 1: Searching for the table I selected
Screen Shot 2020-10-21 at 6 32 02 PM

Image 2: See the data preview isn't default tab
Screen Shot 2020-10-21 at 6 32 11 PM

@zuzana-vej Are you sure you're testing it on the latest master? For me it works exactly like you expect (see gif).
ezgif com-gif-maker (1)

sqllab-preview

Yes latest master, just synced it yesterday. Using Chrome.

@zuzana-vej I'm sorry, but I cannot reproduce it 馃檨 Does anybody else still experience this issue?

Yeah. No problem. I'll close this and if necessary reopen. Thanks for checking @kgabryje
EDIT: confirmed works as expected thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amien90 picture amien90  路  3Comments

XiaodiKong picture XiaodiKong  路  3Comments

ylkjick532428 picture ylkjick532428  路  3Comments

sashank picture sashank  路  3Comments

john-bodley picture john-bodley  路  3Comments