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

deps: bump dvc-data to 0.0.6; fix imports #7895

Merged
merged 1 commit into from Jun 14, 2022

Conversation

skshetry
Copy link
Member

See inline comments.

@skshetry skshetry added the dependencies Pull requests that update a dependency file label Jun 14, 2022
@skshetry skshetry requested a review from efiop June 14, 2022 11:49
@skshetry skshetry self-assigned this Jun 14, 2022
@skshetry skshetry requested a review from a team as a code owner June 14, 2022 11:49
@@ -6,9 +6,9 @@
from dvc_data.db import get_index

if TYPE_CHECKING:
from dvc_data.hashfile.db import HashFileDB
Copy link
Member Author

@skshetry skshetry Jun 14, 2022

Choose a reason for hiding this comment

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

Changed ObjectDB type to HashFileDB here as it requires odb.verify. I didn't change it elsewhere as it seems we'll have few more iterations on this, and it's better to use stricter version (i.e. ObjectDB where possible).

Comment on lines -414 to -422
def _add_suffix(objs: Set["HashFile"], suffix: str) -> None:
from itertools import chain

from dvc_data import iterobjs

for obj in chain.from_iterable(map(iterobjs, objs)):
if obj.name is not None:
obj.name += suffix

Copy link
Member Author

Choose a reason for hiding this comment

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

Gets rid of this functionality to set name. :)

@skshetry skshetry merged commit af649af into iterative:main Jun 14, 2022
@skshetry skshetry deleted the bump-dvc-data branch June 14, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants