-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
f"- {hash_name}: {hash_value}\n" | ||
" size: 11\n" | ||
" nfiles: 2\n" | ||
" path: remote://workspace/dir\n" |
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.
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.
def _dumpd(item): | ||
ret = [ | ||
(item.PARAM_PATH, item.def_path), | ||
*item.hash_info.to_dict().items(), | ||
] | ||
|
||
return OrderedDict(ret) |
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.
This should eventually turn into a special Dumper for outputs or into Output.dumpd_lock
(or smth like that). We've discussed it before.
eb4a9b1
to
8bd3c1f
Compare
Related to #3256
β 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.
iterative/dvc.org#1907
Thank you for the contribution - we'll try to review it as soon as possible. π