On May 23, 2016, at 3:34 PM, Carl Eberhard <carlfeberhard@gmail.com> wrote:

There's a way to get the current history data through a non-api url:
/history/current_history_json

That works, but to get the current history for a user I need to set the galaxysession cookie. So it is not really a good solution unless I can find an api to determine the session cookie for the user.  I’ve also noticed that /api/histories/most_recently_used is not returning the most recently used history!  A bug maybe?

Keith


...but, I don't believe those are accessible through any of the bio/blend libraries.

Failing the above, is there some way to get the history ID from the UI?

You can click the information button ('i' with a circle around it) for any dataset in a history. The encoded history API id will be listed under: history api id.

On Sat, May 21, 2016 at 7:03 PM, Suderman Keith <suderman@cs.vassar.edu> wrote:
I have been looking at the JavaDoc for Blend4J [1] and the REST API [2], but I don’t see any way to obtain the “current” history as selected by the user in the Galaxy UI.  I see `/api/histories/most_recently_used`, but it seems that simply selecting a history as the current history in the UI does not make it the “most recently used” (MRU) history; I guess the user has to actually _do_ something with before it becomes the MRU history.  Am I missing something?

Failing the above, is there some way to get the history ID from the UI?

Thanks,
Keith

REFERENCES

1.http://jmchilton.github.io/blend4j/apidocs/
2. https://galaxy.readthedocs.io/en/master/lib/galaxy.webapps.galaxy.api.html#module-galaxy.webapps.galaxy.api.histories

------------------------------
Research Associate
Department of Computer Science
Vassar College
Poughkeepsie, NY


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/


------------------------------
Research Associate
Department of Computer Science
Vassar College
Poughkeepsie, NY