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

[chart-viz][time-series bar chart] SORT DESCENDING did not take effect when selected #15212

Closed
1 of 3 tasks
jinghua-qa opened this issue Jun 17, 2021 · 3 comments
Closed
1 of 3 tasks
Labels
#bug Bug report explore:sort Related to sorting in Explore

Comments

@jinghua-qa
Copy link
Member

SORT DESCENDING did not take effect when selected

Expected results

When 'SORT DESCENDING' is selected , expect SQL query and Data will sort in descending order

Actual results

When 'SORT DESCENDING', did not see DES in expect SQL query and Data is not sorted in descending order

Screenshots

Screen Shot 2021-06-11 at 2 21 33 PM

Screen Shot 2021-06-11 at 2 23 51 PM (1)

How to reproduce the bug

  1. Open time-series-bar chart
  2. Click on 'SORT DESCENDING'
  3. Select 'View query' and observe data
  4. See error

Environment

  • superset version: master

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are 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.
@jinghua-qa jinghua-qa added the #bug Bug report label Jun 17, 2021
@villebro
Copy link
Member

I believe you need to populate the metric that you wish to sort by in the "Sort by" control for "Descending" to take effect. See here:

image

@jinghua-qa
Copy link
Member Author

@villebro so should we disable the SORT option if SORT By is not configured?

@villebro
Copy link
Member

@jinghua-qa that's probably a good idea 👍 I'll do that unless there is a reason why it should be active.

@rusackas rusackas added this to To do in Preset-QA via automation Jun 24, 2021
@zhaoyongjie zhaoyongjie added the explore:sort Related to sorting in Explore label Jun 24, 2021
@yousoph yousoph closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report explore:sort Related to sorting in Explore
Projects
No open projects
Development

No branches or pull requests

4 participants