-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: nvd3 bar chart sortby metric #15318
Conversation
@@ -999,7 +1000,8 @@ def test_explore_json_dist_bar_order(self): | |||
SELECT count(name) AS count_name, count(ds) AS count_ds | |||
FROM birth_names | |||
WHERE ds >= '1921-01-22 00:00:00.000000' AND ds < '2021-01-22 00:00:00.000000' | |||
GROUP BY name ORDER BY count_name DESC, count_ds DESC |
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.
For the distributed bar only a single metric can be sorted.
Codecov Report
@@ Coverage Diff @@
## master #15318 +/- ##
==========================================
+ Coverage 77.14% 77.22% +0.08%
==========================================
Files 973 973
Lines 50473 50481 +8
Branches 6183 6183
==========================================
+ Hits 38938 38985 +47
+ Misses 11329 11290 -39
Partials 206 206
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM - based on the code changes it appears sorting didn't support adhoc metrics before, thanks for fixing both issues :)
SUMMARY
currently, nvd3 bar chart(non-timeseries) can not be sorted by metric. this PR fixed it.
closes: #15260
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
issue link: #15260
after
Jun-23-2021.02-34-07.mp4
TESTING INSTRUCTIONS
tested in local
ADDITIONAL INFORMATION