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

style(explore): clarify ambiguously named "sort by" field #30254

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

sfirke
Copy link
Member

@sfirke sfirke commented Sep 12, 2024

SUMMARY

Users sometimes don't understand the field with the ambiguous name "Sort By". For instance, in #30238 someone expected it would govern the order of the bars along the axis. Other times they think it will sort the order of series on a dimension field. These two kinds of sorting have more clearly-named fields; this "Sort By" sorts the underlying data which is relevant only in the case where a row limit or series limit is reached.

This PR renames that field from "Sort By" to "Data Limit Sort By".

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE
image

AFTER
image

@sfirke sfirke requested a review from yousoph September 12, 2024 16:12
@dosubot dosubot bot added the explore:design Related to the Explore UI/UX label Sep 12, 2024
@sfirke sfirke removed the packages label Sep 12, 2024
@sfirke sfirke changed the title style(chart design): clarify ambiguously named "sort by" field style(explore): clarify ambiguously named "sort by" field Sep 12, 2024
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM. It's an improvement for sure, but I wonder if there are any other label choices... the wording feels awkward even if clearer :) I'm a little stumped ¯\_(ツ)_/¯

@sfirke
Copy link
Member Author

sfirke commented Sep 12, 2024

I hear you @rusackas, I went back and forth... of the Copilot suggestions, the other contenders I liked were "Pre-Render Sort By" and "Truncation Sort By" -- do you like one of those better?

@michael-s-molina
Copy link
Member

I'm also not sure about Data Limit Sort By... Maybe Data Sort By or Query Sort By? I'm ok with you don't find a better name for it.

@sfirke
Copy link
Member Author

sfirke commented Sep 12, 2024

I like Query Sort By, that makes it clear it's a backend thing.

Need to save before reboot
@rusackas
Copy link
Member

I like Query Sort By, that makes it clear it's a backend thing.

Sort Query By?

@sfirke
Copy link
Member Author

sfirke commented Sep 16, 2024

/testenv up

Copy link
Contributor

@sfirke Ephemeral environment spinning up at http://44.242.227.133:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@sfirke
Copy link
Member Author

sfirke commented Sep 16, 2024

I updated the label text to Sort query by.

And I updated the tooltip. This sorts the query result which affects data download + drilling so doesn't matter only in the case that a limit is reached -- another reason that your suggestions are better than the original idea.

@sfirke
Copy link
Member Author

sfirke commented Sep 18, 2024

This one Cypress test keeps failing with a vague error message. Is there a way to tell if there is a Cypress test that is failing because this label changed or if it's just flaky?

@michael-s-molina
Copy link
Member

@sfirke This is a known problem with Cypress that is currently being investigated. For now, you just need to keep re-triggering that job until you get lucky 😢

@sfirke sfirke merged commit 08145d8 into apache:master Sep 18, 2024
33 checks passed
@sfirke sfirke deleted the improve-name-sort-by branch September 18, 2024 19:18
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

nyohasstium pushed a commit to Webgains/superset that referenced this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explore:design Related to the Explore UI/UX packages size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants