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

HashfileDB: support migration between ODBs #389

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Jun 13, 2023

No description provided.

return dest.add(paths, src.fs, oids, hardlink=True, callback=callback)


def prepare(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I separated prepare and migrate because from the DVC UI perspective it's two distinct operations with separate progress bars (one for the hashing operation and one for the transfer)

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks pretty nice. Need to do the same in checkout and fetch later 🙂

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.57 ⚠️

Comparison is base (dfb9850) 61.59% compared to head (055739c) 61.03%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
- Coverage   61.59%   61.03%   -0.57%     
==========================================
  Files          55       56       +1     
  Lines        3776     3811      +35     
  Branches      676      681       +5     
==========================================
  Hits         2326     2326              
- Misses       1310     1345      +35     
  Partials      140      140              
Impacted Files Coverage Δ
src/dvc_data/hashfile/db/migrate.py 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pmrowla pmrowla merged commit 3f3d2c1 into iterative:main Jun 13, 2023
@pmrowla pmrowla deleted the hashfiledb-migrate branch June 13, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants