Skip to content

Commit

Permalink
Rename contents to value in JSONL manifest (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc authored and achave11-ucsc committed Aug 14, 2024
1 parent f4f4375 commit db4a9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/azul/service/manifest_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ def create_file(self) -> tuple[str, Optional[str]]:
with open(path, 'w') as f:
for replica in self._all_replicas():
entry = {
'contents': replica['contents'],
'value': replica['contents'],
'type': replica['replica_type']
}
json.dump(entry, f)
Expand Down
4 changes: 2 additions & 2 deletions test/service/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ def test_verbatim_jsonl_manifest(self):
expected = [
{
'type': replica_type,
'contents': bundle.metadata_files[key],
'value': bundle.metadata_files[key],
}
for bundle in map(self._load_canned_bundle, self.bundles())
for replica_type, key in [
Expand Down Expand Up @@ -2082,7 +2082,7 @@ def test_verbatim_jsonl_manifest(self):
# Consolidate entities with the same replica (i.e. datasets)
json_hash(entity).digest(): {
'type': 'anvil_' + entity_ref.entity_type,
'contents': entity,
'value': entity,
}
for bundle in self.bundles()
for entity_ref, entity in self._load_canned_bundle(bundle).entities.items()
Expand Down

0 comments on commit db4a9b6

Please sign in to comment.