Skip to content
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

[WIP] update: add --all flag #8288

Closed
wants to merge 1 commit into from

Conversation

dtrifiro
Copy link
Contributor

update --all is an alternative to providing a target or list of targets: when using --all, update is run against all imports and if required, data is downloaded and .dvc files updated.

if not with_deps:
return stages
if stage_filter is not None:
return list(filter(stage_filter, res))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why return an instantiated list here instead of just using the filtered generator?

Copy link
Member

Choose a reason for hiding this comment

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

The stages can be filtered in update itself, no need to complicate collect() further. It will still load them into memory.

@dtrifiro
Copy link
Contributor Author

I don't really feel like this is required since we already have -R, see discussion at #8274

@dtrifiro dtrifiro closed this Sep 27, 2022
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.

3 participants