-
Notifications
You must be signed in to change notification settings - Fork 240
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
feat: add estimated time for query execution #1158
Conversation
moment.duration(secondsRemainToComplete, 'seconds') | ||
)} | ||
. | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer to format the string first to avoid the weird {' '}
, e.g.
message = `Estimated to be completed in ${formatDuration(moment.duration(secondsRemainToComplete, 'seconds'))}.`
<div>{message}</div>
contentDOM = ( | ||
<div className="statement-execution-text-container"> | ||
<div className="statement-execution-text-title"> | ||
Status: {statusLabel} | ||
</div> | ||
{getMetaInfoDOM()} | ||
{progressBar} | ||
{estimatedTimeDOM} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about display the estimation in the same line with progress bar, after the %, like
[>>>>.........] 25% (Estimated to be completed in 14s)
or just
[>>>>.........] 25% ( 14s remaining)
This reverts commit 7a25679.
* feat: add estimated time for query execution * resolved comments
pinterest#1166) This reverts commit 7a25679.
* feat: add estimated time for query execution * resolved comments
pinterest#1166) This reverts commit 7a25679.
This is just a linear interpolation on how long the query would finish