commit/galaxy-central: carlfeberhard: History API, show: include user_id
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/4541fabfeacf/ Changeset: 4541fabfeacf User: carlfeberhard Date: 2013-12-10 22:18:25 Summary: History API, show: include user_id Affected #: 1 file diff -r da82785d730737313cf9af7348791cb4b0afc937 -r 4541fabfeacf4d166d33eb8da6ba7fd638721850 lib/galaxy/web/base/controller.py --- a/lib/galaxy/web/base/controller.py +++ b/lib/galaxy/web/base/controller.py @@ -474,6 +474,9 @@ """Returns history data in the form of a dictionary. """ history_dict = history.to_dict( view='element', value_mapper={ 'id':trans.security.encode_id }) + history_dict[ 'user_id' ] = None + if history.user_id: + history_dict[ 'user_id' ] = trans.security.encode_id( history.user_id ) history_dict[ 'nice_size' ] = history.get_disk_size( nice_size=True ) history_dict[ 'annotation' ] = history.get_item_annotation_str( trans.sa_session, trans.user, history ) 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.
participants (1)
-
commits-noreply@bitbucket.org