1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7950ab309ad1/ Changeset: 7950ab309ad1 User: jmchilton Date: 2014-05-12 16:54:02 Summary: Small improvements to collection creation API. Return full collection when creating collection and improved error handling during creation. Affected #: 2 files diff -r 4af4aad0ce3a47407298e05bab4729091361ac47 -r 7950ab309ad1cb06cf3af973adcca1e3209c9241 lib/galaxy/dataset_collections/__init__.py --- a/lib/galaxy/dataset_collections/__init__.py +++ b/lib/galaxy/dataset_collections/__init__.py @@ -202,6 +202,10 @@ def __load_elements( self, trans, element_identifiers ): elements = odict.odict() for element_identifier in element_identifiers: + if "name" not in element_identifier: + raise RequestParameterInvalidException( + "Cannot load invalid dataset identifier - missing name - %s" % element_identifier + ) elements[ element_identifier[ "name" ] ] = self.__load_element( trans, element_identifier ) return elements diff -r 4af4aad0ce3a47407298e05bab4729091361ac47 -r 7950ab309ad1cb06cf3af973adcca1e3209c9241 lib/galaxy/webapps/galaxy/api/history_contents.py --- a/lib/galaxy/webapps/galaxy/api/history_contents.py +++ b/lib/galaxy/webapps/galaxy/api/history_contents.py @@ -295,7 +295,7 @@ create_params = api_payload_to_create_params( payload ) service = trans.app.dataset_collections_service dataset_collection_instance = service.create( trans, parent=history, **create_params ) - return self.__collection_dict( trans, dataset_collection_instance ) + return self.__collection_dict( trans, dataset_collection_instance, view="element" ) @expose_api_anonymous def update( self, trans, history_id, id, payload, **kwd ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.