You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, from the docs I realise that pull -R <target> is probably working exactly as advertised.
In the VS Code extension, we show a tracked tree which can be used to selectively pull files from the remote.
We currently use the output of dvc list . -R --show-json --dvc-only to generate this tree (we will shortly be using the output from the new data:status command). We mark everything provided by the list output as tracked.
When calling pull against these tracked paths we check to see if the path exists in the list output. If it does then we call dvc pull <target>. If it does not we call dvc pull -R <target>.
When calling dvc pull -R we get mixed results. Here is an example of -R stating that everything is up to date when things clearly haven't changed:
Screen.Recording.2022-05-17.at.3.35.58.pm.mov
dvc.yaml for the above project is here. training_metrics is tracked but there is no way currently for us to easily/consistently tell this from the combined output of list, status & diff.
Reproduce
Open demo project for the first time.
Run dvc pull -R training_metrics from the root.
“everything is up to date” will be returned by the command
No data will have been updated.
Expected
dvc pull -R target checks the target as well as all searching inside the target.
We could take the alternative approach of including the appropriate information in the new data:status command. I.e training_metrics/ would be provided as part of the output to let us know that it is tracked.
Bug Report
Description
Firstly, from the docs I realise that
pull -R <target>is probably working exactly as advertised.In the VS Code extension, we show a tracked tree which can be used to selectively pull files from the remote.
We currently use the output of
dvc list . -R --show-json --dvc-onlyto generate this tree (we will shortly be using the output from the new data:status command). We mark everything provided by the list output as tracked.When calling
pullagainst these tracked paths we check to see if the path exists in the list output. If it does then we calldvc pull <target>. If it does not we calldvc pull -R <target>.When calling
dvc pull -Rwe get mixed results. Here is an example of-Rstating that everything is up to date when things clearly haven't changed:Screen.Recording.2022-05-17.at.3.35.58.pm.mov
dvc.yaml for the above project is here.
training_metricsis tracked but there is no way currently for us to easily/consistently tell this from the combined output oflist,status&diff.Reproduce
dvc pull -R training_metricsfrom the root.Expected
dvc pull -R targetchecks the target as well as all searching inside the target.We could take the alternative approach of including the appropriate information in the new data:status command. I.e
training_metrics/would be provided as part of the output to let us know that it is tracked.Environment information
Output of
dvc doctor:Additional Information (if any):
Please let me know if you need anything else from me. Thanks