Skip to content

dvc: add size/nfiles for deps/outs #4836

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

Merged
merged 3 commits into from
Nov 4, 2020
Merged

dvc: add size/nfiles for deps/outs #4836

merged 3 commits into from
Nov 4, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Nov 3, 2020

Related to #3256

iterative/dvc.org#1907

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@efiop efiop changed the title [WIP] dvc: add size/nfiles for deps/outs dvc: add size/nfiles for deps/outs Nov 3, 2020
@efiop efiop changed the title dvc: add size/nfiles for deps/outs [WIP] dvc: add size/nfiles for deps/outs Nov 4, 2020
Comment on lines 281 to 284
f"- {hash_name}: {hash_value}\n"
" size: 11\n"
" nfiles: 2\n"
" path: remote://workspace/dir\n"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should really be:

- path: ...
  md5: ...
  size: ...
  nfiles: ...

added a checkbox to #4841 , but we could do this right away, as it will only affect the newly written files, which is a bit annoying but not that bad.

Comment on lines +137 to +143
def _dumpd(item):
ret = [
(item.PARAM_PATH, item.def_path),
*item.hash_info.to_dict().items(),
]

return OrderedDict(ret)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should eventually turn into a special Dumper for outputs or into Output.dumpd_lock(or smth like that). We've discussed it before.

@efiop efiop force-pushed the fix-3256 branch 6 times, most recently from eb4a9b1 to 8bd3c1f Compare November 4, 2020 14:37
@efiop efiop changed the title [WIP] dvc: add size/nfiles for deps/outs dvc: add size/nfiles for deps/outs Nov 4, 2020
@efiop efiop changed the title dvc: add size/nfiles for deps/outs [WIP] dvc: add size/nfiles for deps/outs Nov 4, 2020
@efiop efiop changed the title [WIP] dvc: add size/nfiles for deps/outs dvc: add size/nfiles for deps/outs Nov 4, 2020
@efiop efiop merged commit e1b82c5 into iterative:master Nov 4, 2020
@skshetry skshetry added the feature is a feature label Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature is a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants