From ca9675341f16b2b205cfb195ca2590e427a3eacf Mon Sep 17 00:00:00 2001 From: Frederico Gendorf Date: Mon, 26 Aug 2024 16:23:07 +0000 Subject: [PATCH 1/3] allow to add users to private proxy channels --- environment.yml | 2 -- quetz/main.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/environment.yml b/environment.yml index 7c2e78c7..16bc0854 100644 --- a/environment.yml +++ b/environment.yml @@ -52,5 +52,3 @@ dependencies: - pytest-asyncio - pytest-timeout - pydantic >=2 - - pip: - - git+https://github.com/jupyter-server/jupyter_releaser.git@v2 diff --git a/quetz/main.py b/quetz/main.py index db1a36be..11413d84 100644 --- a/quetz/main.py +++ b/quetz/main.py @@ -1035,7 +1035,7 @@ def copy_package( tags=["channels"], ) def get_channel_members( - channel: db_models.Channel = Depends(get_channel_or_fail), + channel: db_models.Channel = Depends(get_channel_allow_proxy), dao: Dao = Depends(get_dao), auth: authorization.Rules = Depends(get_rules), ): @@ -1048,7 +1048,7 @@ def get_channel_members( @api_router.post("/channels/{channel_name}/members", status_code=201, tags=["channels"]) def post_channel_member( new_member: rest_models.PostMember, - channel: db_models.Channel = Depends(get_channel_or_fail), + channel: db_models.Channel = Depends(get_channel_allow_proxy), dao: Dao = Depends(get_dao), db=Depends(get_db), auth: authorization.Rules = Depends(get_rules), @@ -1074,7 +1074,7 @@ def post_channel_member( @api_router.delete("/channels/{channel_name}/members", tags=["channels"]) def delete_channel_member( username: str, - channel: db_models.Channel = Depends(get_channel_or_fail), + channel: db_models.Channel = Depends(get_channel_allow_proxy), dao: Dao = Depends(get_dao), db=Depends(get_db), auth: authorization.Rules = Depends(get_rules), From 497195f1837b8ad60a10114f1b6b4d76b88256a5 Mon Sep 17 00:00:00 2001 From: Frederico Gendorf Date: Tue, 27 Aug 2024 13:41:58 +0000 Subject: [PATCH 2/3] fix some links on default frontend --- quetz/basic_frontend/index.html | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/quetz/basic_frontend/index.html b/quetz/basic_frontend/index.html index 33e9914e..08e90a06 100644 --- a/quetz/basic_frontend/index.html +++ b/quetz/basic_frontend/index.html @@ -52,28 +52,8 @@

Quetz

login with github - login with gitlab - login with google - login with AzureAD - revoke github - revoke gitlab - revoke google - revoke AzureAD - + revoke github + swagger