Skip to content

Commit

Permalink
Fix: AnVIL field size is inconsistently named (#4642)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Dec 16, 2022
1 parent a5602ef commit 533c265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/azul/plugins/metadata/anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ def _field_mapping(self) -> MetadataPlugin._FieldMapping:
'file_id',
'data_modality',
'file_format',
'file_size',
'file_md5sum',
'reference_assembly',
'file_name',
# Not in schema
'crc32',
'sha256',
Expand All @@ -166,8 +168,6 @@ def _field_mapping(self) -> MetadataPlugin._FieldMapping:
# These field names are hard-coded in the implementation of
# the repository service/controller.
**{
'file_size': 'size',
'file_name': 'name',
# Not in schema
'version': 'fileVersion',
'uuid': 'fileId',
Expand Down
2 changes: 1 addition & 1 deletion test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def _get_one_file(self, catalog: CatalogName) -> JSON:
if config.is_hca_enabled(catalog):
file_size_facet = 'fileSize'
elif config.is_anvil_enabled(catalog):
file_size_facet = 'size'
file_size_facet = 'file_size'
else:
assert False, catalog
for filters in [self._fastq_filter(catalog), {}]:
Expand Down

0 comments on commit 533c265

Please sign in to comment.