Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: better backward compatibility for table viz #10219

Merged
merged 2 commits into from Jul 1, 2020

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Jul 1, 2020

SUMMARY

Bump table viz to v0.14.5 (not released yet) to change default query mode from aggregate to null so it can have better backward compatibility. Currently existing tables in the old NOT GROUP BY mode will not open the Query Mode: Raw tab by default.

Accompanying superset-ui PR: apache-superset/superset-ui#659

This bug was actually captured by #10206, but I was lazy and went with an easier fix.

Update: also fixes #10215 .

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Open an existing table chart querying raw columns:

Currently received:

Expected:

TEST PLAN

ADDITIONAL INFORMATION

@ktmud ktmud marked this pull request as draft July 1, 2020 17:31
@ktmud
Copy link
Member Author

ktmud commented Jul 1, 2020

also fixes #10215 ?

Yep

@nytai
Copy link
Member

nytai commented Jul 1, 2020

also fixes #10215

@ktmud ktmud marked this pull request as ready for review July 1, 2020 18:02
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one question, otherwise lgtm

Comment on lines +106 to +107
// should still work when query_mode is not-set/invalid
query_mode: undefined,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we keep the old test case and add the new one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is another test below that sets query_mode with a value. Can make it more explicit though.

@ktmud ktmud merged commit f7a024d into apache:master Jul 1, 2020
@ktmud ktmud deleted the bugfix-table-query-mode branch July 1, 2020 18:23
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore option in viz shows "Empty Query" error
4 participants