Git Product home page Git Product logo

Comments (4)

nsoranzo avatar nsoranzo commented on July 17, 2024

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.

Lobour avatar Lobour commented on July 17, 2024

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.

nsoranzo avatar nsoranzo commented on July 17, 2024

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.

nsoranzo avatar nsoranzo commented on July 17, 2024

After IRC chat, this was diagnosed as a Galaxy library UI problem, the user are correctly added.

from bioblend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.