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

Web console: Misc QueryView UX improvements #11158

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

vogievetsky
Copy link
Contributor

@vogievetsky vogievetsky commented Apr 23, 2021

Just a number of UX improvements to the query view ✨ based on feedback from users.

Firstly there is a cute little stopwatch ⏱️ to keep you company while the query runs:

image

Also added:

  • Improved page indication in the results table when the total number of results is not known due to auto limit
  • Automatically increase the auto limit by 10x every time you reach the last loaded page
  • Don't auto run the query when fresh opening the query view (prevents you from running a stale query)
  • Page in the query output get reset to 0 if number of query result changes (vs leaving you in an empty page)

This PR has:

  • been self-reviewed.
  • been tested in a test Druid cluster.

@vogievetsky
Copy link
Contributor Author

Where is TravisCI?

@vogievetsky
Copy link
Contributor Author

Oh there it is!

Comment on lines +51 to +54
if (e.altKey) {
if (hasMoreResults) {
onLoadMore();
}
Copy link
Member

Choose a reason for hiding this comment

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

what does this do? something with limit wrapping or.. loading stuff? ... if i followed correctly back to handleLoadMore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you are in the state where the auto limit wrapper is applied (sqlOuterLimit set in the context) then alt clicking here will 10x the sqlOuterLimit something that now happens when you reach the last loaded page.

So if you are in this state:

image

And you Alt+click the query reruns and you get:

image

Alt+click again and:

image

@suneet-s
Copy link
Contributor

Added Release Notes for at least the 10x auto-limit UX improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants