Skip to content

Commit

Permalink
[r] Use DCP2 schema name for HCA replica_type (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Jul 31, 2024
1 parent d4dac36 commit 81ccef2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/azul/plugins/metadata/hca/indexer/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ class BaseTransformer(Transformer, metaclass=ABCMeta):
api_bundle: api.Bundle

def replica_type(self, entity: EntityReference) -> str:
assert entity.entity_type == self.entity_type(), entity
return entity.entity_type.removesuffix('s')
api_entity = self.api_bundle.entities[UUID(entity.entity_id)]
return api_entity.schema_name

@classmethod
def aggregator(cls, entity_type: EntityType) -> Optional[EntityAggregator]:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81ccef2

Please sign in to comment.