Skip to content

Commit

Permalink
Improve get_entity bulletproofing by supporting both object and UUI…
Browse files Browse the repository at this point in the history
…D lookups (#105)
  • Loading branch information
NickAkhmetov authored Dec 16, 2024
1 parent 0ae44c2 commit e84b829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.5
0.3.6
2 changes: 2 additions & 0 deletions src/portal_visualization/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def get_vitessce_conf_cells_and_lifted_uuid(
else: # pragma: no cover # We have separate tests for the builder logic
try:
def get_entity(entity):
if (type(entity) is str):
return self.get_entity(uuid=entity)
return self.get_entity(uuid=entity.get('uuid'))
Builder = get_view_config_builder(entity, get_entity, parent, epic_uuid)
builder = Builder(entity, self.groups_token, self.assets_endpoint)
Expand Down

0 comments on commit e84b829

Please sign in to comment.