mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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_*
|
||||
|
||||
Reference in New Issue
Block a user