Redash: A forked query clones all visualizations except for table visualizations

Created on 12 Mar 2019  路  2Comments  路  Source: getredash/redash

Issue Summary

Suppose I have "Query A" that includes two chart visualizations and two table visualizations for a total of four visualizations. One of the table visualizations is the default, the other is a custom table visualization that hides certain columns and formats others. I fork "Query A" and call it "Query B".

After the fork, "Query B" is identical to "Query A" except it only has three total visualizations: two charts and the default table, but my custom table is not forked.

Steps to Reproduce

  1. Make a query and add a second table visualization in addition to the default
  2. Fork the query
  3. Notice that the second table visualization is not included

I would expect all the visualizations to come along with the query when it is forked.

Technical details:

  • Redash Version: 7.0.0
  • Browser/OS: Chrome, Firefox, Safari
  • How did you install Redash: SaaS
Backend Bug Visualizations Table

Most helpful comment

Exactly. One caveat though: when a query is created we create a table for it by default. When resolving this we need to make sure we don't end up with N+1 tables :)

All 2 comments

It's definitely a bug: some time ago table wasn't a real visualization, I think that code that forks queries still does not know that now table is a visualization and should be copied as well :grin:

Exactly. One caveat though: when a query is created we create a table for it by default. When resolving this we need to make sure we don't end up with N+1 tables :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccakes picture ccakes  路  3Comments

WesleyBatista picture WesleyBatista  路  4Comments

dclong picture dclong  路  4Comments

hereischris picture hereischris  路  4Comments

brylie picture brylie  路  3Comments