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

extract transfer related logic from odb to fs.utils.transfer #6539

Merged
merged 2 commits into from
Sep 6, 2021

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Sep 6, 2021

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

@skshetry skshetry added the refactoring Factoring and re-factoring label Sep 6, 2021
@skshetry skshetry self-assigned this Sep 6, 2021
@skshetry skshetry requested a review from a team as a code owner September 6, 2021 11:10
@skshetry skshetry added this to In progress in DVC 24 Aug - 07 Sep 2021 via automation Sep 6, 2021
logger = logging.getLogger(__name__)


def transfer(
Copy link
Member Author

Choose a reason for hiding this comment

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

I am planning to add support for the callback in the transfer here, so extracting to fs.utils. move will definitely cause an issue, not sure how to handle that without an extra size call.

Copy link
Member Author

@skshetry skshetry Sep 6, 2021

Choose a reason for hiding this comment

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

Also, upload/download_file/upload_fobj requires support for callbacks. I am thinking of adding callback parameter in these functions, and keep the progress bar support in the filesystem that we have for now, if callback argument is not passed. Then, replace it with appropriate callbacks as we refactor and then get rid of the Tqdm progress bars inside fs.

As local odb needs to set a mode for dir, we cannot create a directory
in the transfer
@skshetry skshetry merged commit c944d4a into iterative:master Sep 6, 2021
@skshetry skshetry deleted the move-transfer branch September 6, 2021 16:17
DVC 24 Aug - 07 Sep 2021 automation moved this from In progress to Done Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants