Skip to content

Commit

Permalink
List tags in /api/dataset_collections/{hdca_id}/contents/{parent_id}
Browse files Browse the repository at this point in the history
Fixes galaxyproject#15878.
I don't love it, but the endpoint is paginated, and if we want
to show tags in the summary view I think we have to do this.
  • Loading branch information
mvdbeek committed Mar 31, 2023
1 parent d22dc4a commit 5e42a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/managers/collections_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def dictify_element_reference(element, rank_fuzzy_counts=None, recursive=True, s
object_details["state"] = element_object.state
object_details["hda_ldda"] = "hda"
object_details["history_id"] = element_object.history_id
object_details["tags"] = element_object.make_tag_string_list()

dictified["object"] = object_details
else:
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ class HDAObject(Model):
state: Dataset.states = DatasetStateField
hda_ldda: DatasetSourceType = HdaLddaField
history_id: DecodedDatabaseIdField = HistoryIdField
tags: List[str]

class Config:
extra = Extra.allow # Can contain more fields like metadata_*
Expand Down

0 comments on commit 5e42a7d

Please sign in to comment.