Skip to content

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Nov 10, 2020

The final separation that puts this Cache/Remote/Tree trio in their proper places.

No new logic added, just tossing around methods to make them lend in logical places (except for minor gc message adjustments and new internal helpers). E.g. index is for Remote, but listing the cache is for Cache.

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

@efiop efiop mentioned this pull request Nov 10, 2020
2 tasks
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previosly we checked the index here, but that was mixing up remotes and caches, which is incorrect, so now we first check the index in Remote(because our current indexes are local indexes for remote caches) and then fallback to checking cache, which is naturual and provides nice intuitive isolation.

Comment on lines -11 to -12
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We never needed an SSHRemote, as all of the custom stuff was actually about SSHCache.

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 conversion that we do might be causing things like #4139 . Might want to check.

@efiop efiop changed the title [WIP] dvc: refactor cache/remote relations dvc: refactor cache/remote relations Nov 10, 2020
@efiop efiop merged commit f0ad1b4 into treeverse:master Nov 10, 2020
I159 added a commit to I159/dvc that referenced this pull request Nov 10, 2020
…limit

* 'master' of github.com:iterative/dvc:
  dvc: refactor cache/remote relations (treeverse#4867)
  codecov: add target coverage, and threshold for patch and project (treeverse#4873)
@skshetry skshetry added refactoring Factoring and re-factoring skip-changelog Skips changelog labels Nov 12, 2020
@soerface soerface mentioned this pull request Nov 13, 2020
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Factoring and re-factoring skip-changelog Skips changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants