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

Fix incorrect sort order when hidden, pivoted columns are sorted #1000

Merged
merged 3 commits into from
Apr 6, 2020

Conversation

sc1f
Copy link
Contributor

@sc1f sc1f commented Apr 3, 2020

This PR fixes an issue where the incorrect count aggregate was used to sort hidden columns used as row/column pivots. Seen in the Perspective COVID example:

download

Because the count of each unique item in the column was used - and not the values of each unique item - row/column headers were displayed in the incorrect order. This PR fixes that issue in t_view_config and adds tests that assert the correct behavior:

Screen Shot 2020-04-03 at 5 09 20 PM

Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good!

@texodus
Copy link
Member

texodus commented Apr 6, 2020

Thanks for the PR!

@texodus texodus merged commit 761d47d into master Apr 6, 2020
@texodus texodus added bug Concrete, reproducible bugs JS labels Apr 6, 2020
@texodus texodus deleted the hidden-sort-aggregates branch January 18, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants