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 17ef083
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 17ef083

Please sign in to comment.