Skip to content

Commit 47fae42

Browse files
committed
@matusdrobuliak66 review: pricate workspace
1 parent ab80092 commit 47fae42

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

services/web/server/src/simcore_service_webserver/projects/_jobs_repository.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,10 @@ async def list_projects_marked_as_jobs(
6868
6969
7070
Arguments:
71-
product_name -- product identifier of the caller's context
72-
user_id -- user identifier of the caller
71+
product_name -- caller's context product identifier
72+
user_id -- caller's user identifier
7373
7474
Keyword Arguments:
75-
connection -- (default: {None})
76-
offset -- pagination offset (default: {0})
77-
limit -- pagittion limit (default: {10})
7875
job_parent_resource_name_prefix -- is a prefix to filter the `job_parent_resource_name`. The latter is a
7976
path-like string that contains a hierarchy of resources. An example of `job_parent_resource_name` is:
8077
`/solvers/simcore%2Fservices%2Fcomp%2Fisolve/releases/1.3.4/jobs/f622946d-fd29-35b9-a193-abdd1095167c`
@@ -109,8 +106,9 @@ async def list_projects_marked_as_jobs(
109106
project_to_groups.c.gid.in_(sa.select(user_groups_query.c.gid)),
110107
project_to_groups.c.read.is_(True),
111108
projects.c.workspace_id.is_(
109+
# ONLY projects in private workspaces
112110
None
113-
), # ONLY projects in private workspaces
111+
),
114112
)
115113
)
116114

0 commit comments

Comments
 (0)