List tags in /api/dataset_collections/{hdca_id}/contents/{parent_id}

Fixes https://github.com/galaxyproject/galaxy/issues/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.
This commit is contained in:
mvdbeek
2023-03-31 17:41:37 +02:00
parent d22dc4abe6
commit 7f425d1140
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -3580,6 +3580,8 @@ export interface components {
* @description The current state of this dataset.
*/
state: components["schemas"]["galaxy__model__Dataset__states"];
/** Tags */
tags: string[];
};
/**
* HDASummary
+1
View File
@@ -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:
+1
View File
@@ -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_*