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

Existing histogram slices are broken #5011

Closed
3 tasks done
michellethomas opened this issue May 15, 2018 · 2 comments · Fixed by #5057
Closed
3 tasks done

Existing histogram slices are broken #5011

michellethomas opened this issue May 15, 2018 · 2 comments · Fixed by #5057

Comments

@michellethomas
Copy link
Contributor

Testing what's on master, I noticed that all of our existing histogram slices are broken with the error message Must have at least one numeric column specified. This error shows up when there's no data in all_columns_x (Numeric Columns). In the params they all have all_columns_x set as a string. It looks like in the PR here this was changed to a multi field where the value would be a list.

@mistercrunch would changing a SelectControl to multi: true break existing slices? Do we need a db migration for this or is there some other way we can catch this?

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Expected results

Existing histograms load correctly

Actual results

Existing histograms load with the error

Steps to reproduce

Load a histogram created before this PR was introduced.

@mistercrunch @ArielStv

@michellethomas
Copy link
Contributor Author

@mistercrunch thoughts on this? do we need a db migration to handle this case where a single value select was changed to multi: true?

@mistercrunch
Copy link
Member

I should have caught this in code review. So either we do a db migration or do some magic around SelectControl that would wrap value if it's not an array and multi: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants