mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Include created history url in json rendered by histories API on successful history creation. Dannon verified this is the desired behvaior in the comments on issue 802 in bitbucket.
This commit is contained in:
@@ -109,6 +109,7 @@ class HistoriesController( BaseAPIController, UsesHistoryMixin ):
|
||||
trans.sa_session.add( new_history )
|
||||
trans.sa_session.flush()
|
||||
item = new_history.get_api_value(view='element', value_mapper={'id':trans.security.encode_id})
|
||||
item['url'] = url_for( 'history', id=item['id'] )
|
||||
return item
|
||||
|
||||
@web.expose_api
|
||||
|
||||
Reference in New Issue
Block a user