-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[Table Viz] Table columns not match with group_by control #5329
[Table Viz] Table columns not match with group_by control #5329
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5329 +/- ##
==========================================
+ Coverage 61.34% 61.37% +0.03%
==========================================
Files 373 373
Lines 23521 23526 +5
Branches 2725 2727 +2
==========================================
+ Hits 14429 14440 +11
+ Misses 9079 9073 -6
Partials 13 13
Continue to review full report at Codecov.
|
Sorry when we were talking about this yesterday I didn't realize that sortBy shouldn't be a list. I think we should figure out why sortBy is a list in this situation. |
20004fb
to
a0f386f
Compare
superset/viz.py
Outdated
@@ -509,7 +509,7 @@ def query_obj(self): | |||
'Choose either fields to [Group By] and [Metrics] or ' | |||
'[Columns], not both')) | |||
|
|||
sort_by = fd.get('timeseries_limit_metric') or [] | |||
sort_by = fd.get('timeseries_limit_metric') or None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the or None
here, if get fails sort_by will be None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. thanks!
a0f386f
to
5ded0fb
Compare
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
(cherry picked from commit 0d10cc5)
timeseries_limit_metric
parameter is supposed to be single value but in the slice record I seetimeseries_limit_metric=[]
. This caused table viz dropped last column.@michellethomas @GabeLoins