-
Notifications
You must be signed in to change notification settings - Fork 1.2k
UI progress cleanup #2846
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
UI progress cleanup #2846
Conversation
@efiop could you list scenarios that you refer to for bad (too little or too much verbosity)? e.g.:
Also you mentioned |
@casperdcl Correct, I think you've listed them all. Same applies to push/pull/fetch/checkout too. |
@efiop should we also consider these despite not being recommended?
|
@casperdcl Good point! What are your thoughts on that? 🙂 |
er... just wondering whether I should bother profiling them too to find out where more progress/feedback is required for users |
@casperdcl I guess both of those cases are |
@efiop there is much fun to be had with that last commit (a941967371b4839f629e6a253792178624c016bb), I added progress everywhere except |
So |
A bit offtopic, sorry about that. Just to share some possible solutions to the UI when there are a few stages (top level progress, below done with [1/4], [2/4] .. ), each of stages includes a progress bar (name of the stage + remove the bar when stage is done), multiple threads progress (in this case show them all, but they are very different - probably application specific): |
when does this happen?
in what case(s) does the hint (I assume it's a message recommending reflink caches) fail to show? |
Try just some random path:
yes, this is the "reflink" message. @pared has more context about the limits we have now. You can try some huge file with a cache set to "copy". The purpose I created that checkbox for is to reconsider this policy, the way the message is written in the context of recent changes with progress bars, etc. It should be clearly visible if we hit a threshold (we can keep it the same for now?) along with progress bar (below them?). |
@shcheklein right. For About the reflink message, it uses Lines 197 to 198 in e031366
About changing the default thresholds, I think that should be a separate issue. |
Codecov Report
@@ Coverage Diff @@
## master #2846 +/- ##
==========================================
- Coverage 92.66% 91.73% -0.93%
==========================================
Files 139 138 -1
Lines 8726 8704 -22
==========================================
- Hits 8086 7985 -101
- Misses 640 719 +79
Continue to review full report at Codecov.
|
TODO: actually disable sub-bars instead
for profiling; may need to revert
Responding to review request
rebased, fixed conflicts; updated description with before & after recordings. |
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.
Looks pretty good, thanks @casperdcl ! Let's merge and iterate over.
<00:00
/<??:??
from completed bars1.00/32.0 files
=>1/32 files
)Extra progress bar concern:
We started using an extra progress bar that is counting targets, as described and shown here: #2658 . In most cases though there is a single target -
dvc add file
ordvc add directory
. That extra progress bar is not needed in those cases. It's needed in case of multiple targets or if-R
option is specified.most issues fixed:

large dir fix, no outer bar for single target, more progress output rather than hanging:

recursive:
