Comments (4)
Thanks for reporting this!
Additionally, a test for this method should be added.
Does it return with an error for you? Any message in the Galaxy server logs?
from bioblend.
Thank you for the quick answer!
This is the output i get in paster.log http://pastebin.com/XQ80X6dP .
This is the code I used : http://pastebin.com/fX3cQYYZ .
While retrying that today, it was actually three of the users that were not added to the data library permission roles. (The three last created users also.)
Oh, and I am using the last version of Galaxy.
Let me know if I can provide any more useful information.
from bioblend.
Hi @Lobour,
I've added a new get_library_permissions()
method and a new test in commit c75a76c: the test passes on Galaxy release_14.10 and later.
I tried to reproduce your problem with:
import bioblend.galaxy
gi = bioblend.galaxy.GalaxyInstance(GALAXY_URL, GALAXY_API_KEY)
users_dict_list_new = gi.users.get_users(deleted=False)
user_id_list_new = [_['id'] for _ in users_dict_list_new]
gi.libraries.set_library_permissions('378af4a4ff4c15f4', access_in=user_id_list_new, modify_in=user_id_list_new, add_in=user_id_list_new, manage_in=user_id_list_new)
ret = gi.libraries.get_library_permissions('378af4a4ff4c15f4')
assert(set(_[1] for _ in ret['access_library_role_list']) == set(user_id_list_new))
assert(set(_[1] for _ in ret['modify_library_role_list']) == set(user_id_list_new))
assert(set(_[1] for _ in ret['add_library_item_role_list']) == set(user_id_list_new))
assert(set(_[1] for _ in ret['manage_library_role_list']) == set(user_id_list_new))
but it worked on a server with >500 users.
from bioblend.
After IRC chat, this was diagnosed as a Galaxy library UI problem, the user are correctly added.
from bioblend.
Related Issues (20)
- Method to cancel a job
- Add type annotations to BioBlend API HOT 2
- Rebuild docs with sphinx-apidoc
- Add an `invoke()` method to the BioBlend.objects `Workflow` class
- Fix unreliable tests
- Add tests for bioblend.toolshed
- 'GalaxyInstance' raises AttributeError when instantiated with email & password combination HOT 2
- Incorrect PyYAML version for bioblend 0.9.0 - 0.16.0 HOT 1
- Getting abosl HOT 1
- Error when trying to get ids of workflow outputs HOT 13
- partial workflow invocation HOT 9
- Drop cloudlaunch support ? HOT 4
- Add support for parameter "all" in get_histories HOT 2
- Tool search in Toolshed: number total results HOT 6
- File name displayed as Pasted Entry for file uploaded using upload_file_contents HOT 2
- Downloading a file from a shared data library HOT 3
- Extend bioblend to support the new notification API HOT 3
- Bioblend reporting workflow as failed while workflow is running or completed successfully. HOT 6
- workflows.refactor_workflows fails on subworkflows HOT 14
- Allow Session Cookies in Requests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bioblend.