Re: [galaxy-dev] Setting access role for datasets through the API

2014-02-18 Thread John Chilton
There isn't really a way to set the role usefully at library dataset
creation right now. This was discussed in a recent thread that also
had some local workarounds:

http://dev.list.galaxyproject.org/BioBlend-AND-Galaxy-Problem-using-upload-file-from-server-function-with-an-associated-role-td4662957.html

There is also a Trello card that you can vote on here to voice that
this should be a priority:

https://trello.com/c/qsQHnFlG

-John

On Mon, Feb 17, 2014 at 3:32 AM, Joseph Ward j.x.w...@dundee.ac.uk wrote:
 Hi,

 I'm trying to use the API to upload data into galaxy, setting the access and
 modify roles as I do so.

 I've managed to get the roles working for the libraries (using
 LIBRARY_ACCESS_in and LIBRARY_MODIFY_in) but when it's uploaded the access
 roles for the datasets are all set to my personal role. I had a poke about
 the form for modifying the permissions of a dataset and took a shot at
 setting DATATSET_ACCESS_in but with no luck.

 Is it possible to set the access role for individual datasets using the API?
 Would this be possible to do at the upload stage or would I need to go over
 each of the datasets in the library after they've been uploaded and set the
 access role?

 Many thanks,

 Joe Ward

 (First time posting to anything like this, so please let me know if I've not
 gone into enough detail etc)

 ___
 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:
   http://lists.bx.psu.edu/

 To search Galaxy mailing lists use the unified search at:
   http://galaxyproject.org/search/mailinglists/
___
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:
  http://lists.bx.psu.edu/

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


[galaxy-dev] Setting access role for datasets through the API

2014-02-17 Thread Joseph Ward
Hi,

I'm trying to use the API to upload data into galaxy, setting the access
and modify roles as I do so.

I've managed to get the roles working for the libraries (using
LIBRARY_ACCESS_in and LIBRARY_MODIFY_in) but when it's uploaded the access
roles for the datasets are all set to my personal role. I had a poke about
the form for modifying the permissions of a dataset and took a shot at
setting DATATSET_ACCESS_in but with no luck.

Is it possible to set the access role for individual datasets using the
API? Would this be possible to do at the upload stage or would I need to go
over each of the datasets in the library after they've been uploaded and
set the access role?

Many thanks,

Joe Ward

(First time posting to anything like this, so please let me know if I've
not gone into enough detail etc)
___
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:
  http://lists.bx.psu.edu/

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