-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't require admin user to list /api/tool_data
#17161
Conversation
/api/tool_data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that looks good!
This comment was marked as resolved.
This comment was marked as resolved.
Hi @jozh2008, thanks a lot for the speed. Question: were you not originally suggesting we should relax the admin requirement on some other read-only functions? Such as:
Or am I confusing things? (If so, you might need to again change the corresponding tests). |
I could see a reason for those being private, that'll need additional review, so I'm going to merge this one now. |
Thank you, I will do a separate PR. |
To use bioblend.galaxy.tool_data.get_data_tables(), I changed require_admin from Tru to False in tool_data.py for index.
Without this change I got the following error.
Additionally, I changed the self.assert_status_code_is(index_reponse,200) in the test_admin_only function in test_tool_data.py, because now you don't have to be an admin to use index.
How to test the changes?
(Select all options that apply)
License