You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/04/23 18:21:06 UTC
[GitHub] [druid] vogievetsky opened a new pull request #11158: Web console: Misc QueryView UX improvements
vogievetsky opened a new pull request #11158:
URL: https://github.com/apache/druid/pull/11158
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:

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)
This PR has:
- [x] been self-reviewed.
- [x] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] vogievetsky commented on a change in pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
vogievetsky commented on a change in pull request #11158:
URL: https://github.com/apache/druid/pull/11158#discussion_r619840079
##########
File path: web-console/src/views/query-view/query-extra-info/query-extra-info.tsx
##########
@@ -39,20 +39,29 @@ import './query-extra-info.scss';
export interface QueryExtraInfoProps {
queryResult: QueryResult;
onDownload: (filename: string, format: string) => void;
+ onLoadMore: () => void;
}
export const QueryExtraInfo = React.memo(function QueryExtraInfo(props: QueryExtraInfoProps) {
- const { queryResult, onDownload } = props;
+ const { queryResult, onDownload, onLoadMore } = props;
+ const wrapQueryLimit = queryResult.getSqlOuterLimit();
+ const hasMoreResults = queryResult.getNumResults() === wrapQueryLimit;
- function handleQueryInfoClick() {
- const id = queryResult.queryId || queryResult.sqlQueryId;
- if (!id) return;
+ function handleQueryInfoClick(e: MouseEvent<HTMLDivElement>) {
+ if (e.altKey) {
+ if (hasMoreResults) {
+ onLoadMore();
+ }
Review comment:
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:

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

Alt+click again and:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis merged pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
clintropolis merged pull request #11158:
URL: https://github.com/apache/druid/pull/11158
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] suneet-s commented on pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
suneet-s commented on pull request #11158:
URL: https://github.com/apache/druid/pull/11158#issuecomment-826363119
Added `Release Notes` for at least the 10x auto-limit UX improvement
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] suneet-s commented on pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
suneet-s commented on pull request #11158:
URL: https://github.com/apache/druid/pull/11158#issuecomment-826363119
Added `Release Notes` for at least the 10x auto-limit UX improvement
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] vogievetsky commented on pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
vogievetsky commented on pull request #11158:
URL: https://github.com/apache/druid/pull/11158#issuecomment-825864711
Oh there it is!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] vogievetsky commented on a change in pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
vogievetsky commented on a change in pull request #11158:
URL: https://github.com/apache/druid/pull/11158#discussion_r619840079
##########
File path: web-console/src/views/query-view/query-extra-info/query-extra-info.tsx
##########
@@ -39,20 +39,29 @@ import './query-extra-info.scss';
export interface QueryExtraInfoProps {
queryResult: QueryResult;
onDownload: (filename: string, format: string) => void;
+ onLoadMore: () => void;
}
export const QueryExtraInfo = React.memo(function QueryExtraInfo(props: QueryExtraInfoProps) {
- const { queryResult, onDownload } = props;
+ const { queryResult, onDownload, onLoadMore } = props;
+ const wrapQueryLimit = queryResult.getSqlOuterLimit();
+ const hasMoreResults = queryResult.getNumResults() === wrapQueryLimit;
- function handleQueryInfoClick() {
- const id = queryResult.queryId || queryResult.sqlQueryId;
- if (!id) return;
+ function handleQueryInfoClick(e: MouseEvent<HTMLDivElement>) {
+ if (e.altKey) {
+ if (hasMoreResults) {
+ onLoadMore();
+ }
Review comment:
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:

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

Alt+click again and:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] vogievetsky commented on pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
vogievetsky commented on pull request #11158:
URL: https://github.com/apache/druid/pull/11158#issuecomment-825855315
Where is TravisCI?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis commented on a change in pull request #11158: Web console: Misc QueryView UX improvements
Posted by GitBox <gi...@apache.org>.
clintropolis commented on a change in pull request #11158:
URL: https://github.com/apache/druid/pull/11158#discussion_r619561788
##########
File path: web-console/src/views/query-view/query-extra-info/query-extra-info.tsx
##########
@@ -39,20 +39,29 @@ import './query-extra-info.scss';
export interface QueryExtraInfoProps {
queryResult: QueryResult;
onDownload: (filename: string, format: string) => void;
+ onLoadMore: () => void;
}
export const QueryExtraInfo = React.memo(function QueryExtraInfo(props: QueryExtraInfoProps) {
- const { queryResult, onDownload } = props;
+ const { queryResult, onDownload, onLoadMore } = props;
+ const wrapQueryLimit = queryResult.getSqlOuterLimit();
+ const hasMoreResults = queryResult.getNumResults() === wrapQueryLimit;
- function handleQueryInfoClick() {
- const id = queryResult.queryId || queryResult.sqlQueryId;
- if (!id) return;
+ function handleQueryInfoClick(e: MouseEvent<HTMLDivElement>) {
+ if (e.altKey) {
+ if (hasMoreResults) {
+ onLoadMore();
+ }
Review comment:
what does this do? something with limit wrapping or.. loading stuff? ... if i followed correctly back to `handleLoadMore`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org