deps: bump dvc-data to 0.37.3 (#8923)

This commit is contained in:
Ruslan Kuprieiev
2023-02-02 04:18:18 +02:00
committed by GitHub
parent ae92154cec
commit 5310bcdcec
5 changed files with 12 additions and 13 deletions
-10
View File
@@ -555,13 +555,6 @@ class Output:
return workspace, key
def get_entry(self) -> "DataIndexEntry":
from dvc.config import NoRemoteError
try:
remote = self.repo.cloud.get_remote_odb(self.remote)
except NoRemoteError:
remote = None
if self.files and not self.obj:
self.obj = self.get_obj()
@@ -569,9 +562,6 @@ class Output:
meta=self.meta,
obj=self.obj,
hash_info=self.hash_info,
odb=self.odb,
cache=self.odb,
remote=remote,
)
if self.stage.is_import and not self.stage.is_repo_import:
dep = self.stage.deps[0]
+1 -1
View File
@@ -94,7 +94,7 @@ def _diff(
with_missing
and change.old
and change.old.hash_info
and not change.old.odb.exists(change.old.hash_info.value)
and not old.odb_map[change.key].exists(change.old.hash_info.value)
):
# NOTE: emulating previous behaviour
_add_change("not_in_cache", change)
+1 -1
View File
@@ -229,7 +229,7 @@ def _filter_missing(dvcfs: "DVCFileSystem", paths: Set[str]) -> Iterator[str]:
if (
entry
and info["type"] == "directory"
and not entry.odb.exists(entry.hash_info.value)
and not dvcfs.repo.odb.local.exists(entry.hash_info.value)
):
yield path
except FileNotFoundError:
+9
View File
@@ -267,6 +267,7 @@ class Index:
def data(self) -> "Dict[str, DataIndex]":
from collections import defaultdict
from dvc.config import NoRemoteError
from dvc_data.index import DataIndex
by_workspace: dict = defaultdict(DataIndex)
@@ -285,6 +286,14 @@ class Index:
entry.key = key
data_index.add(entry)
data_index.odb_map[key] = out.odb
try:
data_index.remote_map[key] = self.repo.cloud.get_remote_odb(
out.remote
)
except NoRemoteError:
pass
return dict(by_workspace)
@staticmethod
+1 -1
View File
@@ -53,7 +53,7 @@ dependencies = [
"dvc-render==0.0.17",
"dvc-task==0.1.11",
"dvclive>=1.2.2",
"dvc-data==0.36.2",
"dvc-data==0.37.3",
"dvc-http",
"hydra-core>=1.1.0",
"iterative-telemetry==0.0.7",