From 68eb3b000fbb31f3d24ad8db7a7ee5cbe7fe32ab Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Wed, 6 Nov 2019 16:08:05 -0500 Subject: [PATCH] if ldda message is not present but ldda info is, return it instead this is a bit of a hack but given the lack of clarity of what field does what on what object (info/message/description on ldda/ld/folder) it should help with the data presentation --- lib/galaxy/webapps/galaxy/api/folder_contents.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/galaxy/webapps/galaxy/api/folder_contents.py b/lib/galaxy/webapps/galaxy/api/folder_contents.py index 8b9d8050f000..799142215c8e 100644 --- a/lib/galaxy/webapps/galaxy/api/folder_contents.py +++ b/lib/galaxy/webapps/galaxy/api/folder_contents.py @@ -129,6 +129,9 @@ def index(self, trans, folder_id, **kwd): tags=ldda_tags)) if content_item.library_dataset_dataset_association.message: return_item.update(dict(message=content_item.library_dataset_dataset_association.message)) + elif content_item.library_dataset_dataset_association.info: + # There is no message but ldda info contains something so we display that instead. + return_item.update(dict(message=content_item.library_dataset_dataset_association.info)) # For every item include the default metadata return_item.update(dict(id=encoded_id,