Skip to content
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

Fix query parameter in /api/libraries/{id}/permissions #12047

Merged
merged 1 commit into from May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/galaxy/webapps/galaxy/api/libraries.py
Expand Up @@ -171,16 +171,16 @@ def get_permissions(
page: Optional[int] = Query(
default=1,
title="Page",
description="The page number to retrieve when paginating the permissions."
description="The page number to retrieve when paginating the available roles."
),
page_limit: Optional[int] = Query(
default=10,
title="Page Limit",
description="The maximum number of permissions per page when paginating."
),
query: Optional[str] = Query(
q: Optional[str] = Query(
None, title="Query",
description="Optional search query to retrieve the permissions."
description="Optional search text to retrieve only the roles matching this query."
),
) -> Union[LibraryCurrentPermissions, LibraryAvailablePermissions]:
"""Gets the current or available permissions of a particular library.
Expand All @@ -192,7 +192,7 @@ def get_permissions(
is_library_access,
page,
page_limit,
query,
q,
)

@router.post(
Expand Down