Skip to content

(bugfix) get/import: fix broken progress bar#4039

Merged
efiop merged 1 commit into
treeverse:masterfrom
skshetry:fix-3874
Jun 14, 2020
Merged

(bugfix) get/import: fix broken progress bar#4039
efiop merged 1 commit into
treeverse:masterfrom
skshetry:fix-3874

Conversation

@skshetry
Copy link
Copy Markdown
Collaborator

@skshetry skshetry commented Jun 14, 2020

#3672 (6d8499e) extended LocalRemote::_get_plans to return
checksums. As all of the args from _get_plans was passed
down to download(), it recognized extra arg of checksum as
no_progress_bar due to which it became True and stopped showing
progress bar at all.

Fix #3874

Screenshots

asciicast

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

PR treeverse#3672 (6d8499e) extended `LocalRemote::_get_plans` to return one
`checksums` too. As all of the args from `_get_plans` was passed
down to `download()`, it recognized extra arg of checksum as
`no_progress_bar` due to which it became True and stopped showing
progress bar at all.

Fix treeverse#3874
@skshetry skshetry requested a review from efiop June 14, 2020 09:09
@skshetry skshetry self-assigned this Jun 14, 2020
Comment thread dvc/remote/local.py
fails = sum(
executor.map(func, from_infos, to_infos, names)
)
else:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@efiop efiop requested a review from pmrowla June 14, 2020 09:36
Copy link
Copy Markdown
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

Great catch! Thank you!

@efiop efiop merged commit bc4bf66 into treeverse:master Jun 14, 2020
@skshetry skshetry deleted the fix-3874 branch June 15, 2020 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get/import: progress bar is broken

2 participants