File tree 3 files changed +10
-7
lines changed
packages/postgres-database
src/simcore_postgres_database
services/web/server/src/simcore_service_webserver/tags 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,10 @@ async def create(
91
91
if description :
92
92
values ["description" ] = description
93
93
94
- # TODO: validate read/write/delete combitations
94
+ if not read :
95
+ read = write or delete
96
+ if not write :
97
+ write = delete
95
98
96
99
async with conn .begin ():
97
100
# insert new tag
Original file line number Diff line number Diff line change 13
13
from pytest_simcore .helpers .postgres_tags import create_tag , create_tag_access
14
14
from simcore_postgres_database .models .tags_access_rights import tags_to_groups
15
15
from simcore_postgres_database .models .users import UserRole , UserStatus
16
+ from simcore_postgres_database .tags_repo import (
17
+ TagNotFoundError ,
18
+ TagOperationNotAllowedError ,
19
+ TagsRepo ,
20
+ )
16
21
from simcore_postgres_database .tags_sql import (
17
22
add_tag_to_project_stmt ,
18
23
create_tag_stmt ,
24
29
update_tag_stmt ,
25
30
)
26
31
from simcore_postgres_database .utils import as_postgres_sql_query_str
27
- from simcore_postgres_database .utils_tags import (
28
- TagNotFoundError ,
29
- TagOperationNotAllowedError ,
30
- TagsRepo ,
31
- )
32
32
33
33
34
34
@pytest .fixture
Original file line number Diff line number Diff line change 13
13
from servicelib .aiohttp .typing_extension import Handler
14
14
from servicelib .mimetype_constants import MIMETYPE_APPLICATION_JSON
15
15
from servicelib .request_keys import RQT_USERID_KEY
16
- from simcore_postgres_database .utils_tags import (
16
+ from simcore_postgres_database .tags_repo import (
17
17
TagDict ,
18
18
TagNotFoundError ,
19
19
TagOperationNotAllowedError ,
You can’t perform that action at this time.
0 commit comments