Skip to content

Commit

Permalink
[2/2] Rename and generalize implicit hubs to hot/root entity types
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc authored and nadove-ucsc committed Jan 9, 2025
1 parent 62e6cab commit 017b9cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/azul/service/manifest_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
azul_urlsafe_b64decode,
azul_urlsafe_b64encode,
)
from azul.collections import (
getitem,
)
from azul.deployment import (
aws,
)
Expand Down Expand Up @@ -2052,7 +2055,7 @@ def _replica_keys(self) -> Iterable[ReplicaKeys]:
document_ids = [
document_id
for entity_type in self.hot_entity_types
for inner_entity in hit['contents'].to_dict().get(entity_type, ())
for inner_entity in getitem(hit['contents'], entity_type, ())
for document_id in always_iterable(inner_entity['document_id'])
]
yield self.ReplicaKeys(hub_id=hit['entity_id'],
Expand Down

0 comments on commit 017b9cc

Please sign in to comment.