Fix to history_contents, dataset.url: use legacy route to prevent intermittent url_for GenerationException

This commit is contained in:
Carl Eberhard
2014-12-08 10:11:44 -05:00
parent 5682b8bc3d
commit d4e86359f5
@@ -154,7 +154,11 @@ class HistoryContentsController( BaseAPIController, UsesHistoryDatasetAssociatio
'resubmitted': hda._state == trans.app.model.Dataset.states.RESUBMITTED,
'hid' : hda.hid,
'history_content_type' : hda.history_content_type,
'url' : url_for( 'history_content_typed', history_id=encoded_history_id, id=encoded_id, type="dataset" ),
#'url' : url_for( 'history_content_typed', history_id=encoded_history_id, id=encoded_id, type="dataset" ),
#TODO: this intermittently causes a routes.GenerationException - temp use the legacy route to prevent this
# see also: https://trello.com/c/5d6j4X5y
# see also: https://sentry.galaxyproject.org/galaxy/galaxy-main/group/20769/events/9352883/
'url' : url_for( 'history_content', history_id=encoded_history_id, id=encoded_id ),
}
def __collection_dict( self, trans, dataset_collection_instance, view="collection" ):