Skip to content

Commit d9f465f

Browse files
remove comments
1 parent 0f9aa5c commit d9f465f

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

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

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -479,31 +479,6 @@ def _create_shared_workspace_query(
479479
WorkspaceScope.ALL,
480480
)
481481

482-
# workspace_access_rights_subquery = (
483-
# (
484-
# sa.select(
485-
# workspaces_access_rights.c.workspace_id,
486-
# sa.func.jsonb_object_agg(
487-
# workspaces_access_rights.c.gid,
488-
# sa.func.jsonb_build_object(
489-
# "read",
490-
# workspaces_access_rights.c.read,
491-
# "write",
492-
# workspaces_access_rights.c.write,
493-
# "delete",
494-
# workspaces_access_rights.c.delete,
495-
# ),
496-
# ).label("access_rights"),
497-
# )
498-
# .where(
499-
# workspaces_access_rights.c.read,
500-
# )
501-
# .group_by(workspaces_access_rights.c.workspace_id)
502-
# )
503-
# .subquery("workspace_access_rights_subquery")
504-
# .lateral()
505-
# )
506-
507482
my_workspace_access_rights_subquery = (
508483
sa.select(
509484
workspaces_access_rights.c.workspace_id,
@@ -530,7 +505,6 @@ def _create_shared_workspace_query(
530505
sa.select(
531506
*PROJECT_DB_COLS,
532507
projects.c.workbench,
533-
# workspace_access_rights_subquery.c.access_rights,
534508
projects_to_products.c.product_name,
535509
projects_to_folders.c.folder_id,
536510
)
@@ -549,11 +523,6 @@ def _create_shared_workspace_query(
549523
),
550524
isouter=True,
551525
)
552-
# .join(
553-
# workspace_access_rights_subquery,
554-
# projects.c.workspace_id
555-
# == workspace_access_rights_subquery.c.workspace_id,
556-
# )
557526
)
558527
.where(projects_to_products.c.product_name == product_name)
559528
)
@@ -760,8 +729,6 @@ async def list_projects_dicts( # pylint: disable=too-many-arguments,too-many-st
760729
filter_by_services=filter_by_services,
761730
)
762731

763-
# For now is withgout access rights
764-
765732
return (
766733
prjs,
767734
prj_types,

0 commit comments

Comments
 (0)