From 394d02a3c7354c5a181817c67fbaa67f56e2b143 Mon Sep 17 00:00:00 2001 From: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:00:19 +0100 Subject: [PATCH] fixes tsts --- .../src/models_library/api_schemas_webserver/groups.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/models-library/src/models_library/api_schemas_webserver/groups.py b/packages/models-library/src/models_library/api_schemas_webserver/groups.py index fcf89919b9b..3b2b77199fb 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/groups.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/groups.py @@ -2,6 +2,7 @@ from typing import Annotated, Any, Self, TypeVar from common_library.basic_types import DEFAULT_FACTORY +from models_library.groups import EVERYONE_GROUP_ID from pydantic import ( AnyHttpUrl, AnyUrl, @@ -114,7 +115,7 @@ def from_model(cls, group: Group, access_rights: AccessRightsDict) -> Self: "accessRights": {"read": True, "write": False, "delete": False}, }, { - "gid": "0", + "gid": "1", "label": "All", "description": "Open to all users", "accessRights": {"read": True, "write": True, "delete": True}, @@ -214,7 +215,7 @@ class MyGroupsGet(OutputSchema): }, ], "all": { - "gid": "0", + "gid": EVERYONE_GROUP_ID, "label": "All", "description": "Open to all users", "accessRights": {"read": True, "write": False, "delete": False},