fractal-server 2.18.0a1__py3-none-any.whl → 2.18.0a2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- __VERSION__ = "2.18.0a1"
1
+ __VERSION__ = "2.18.0a2"
@@ -5,12 +5,10 @@ from fastapi import Depends
5
5
  from fastapi import HTTPException
6
6
  from fastapi import Response
7
7
  from fastapi import status
8
- from sqlmodel import select
9
8
 
10
9
  from fractal_server.app.db import AsyncSession
11
10
  from fractal_server.app.db import get_async_db
12
11
  from fractal_server.app.models import UserOAuth
13
- from fractal_server.app.models.linkuserproject import LinkUserProjectV2
14
12
  from fractal_server.app.routes.auth import current_user_act_ver_prof
15
13
  from fractal_server.app.schemas.v2 import TaskType
16
14
  from fractal_server.app.schemas.v2 import WorkflowTaskCreateV2
@@ -53,31 +51,6 @@ async def create_workflowtask(
53
51
  db=db,
54
52
  )
55
53
 
56
- res = await db.execute(
57
- select(UserOAuth.id)
58
- .join(LinkUserProjectV2, LinkUserProjectV2.user_id == UserOAuth.id)
59
- .where(LinkUserProjectV2.project_id == project_id)
60
- .where(LinkUserProjectV2.is_owner.is_(True))
61
- )
62
- project_owner_id = res.scalar_one()
63
- if project_owner_id != user.id:
64
- try:
65
- await _get_task_read_access(
66
- task_id=task_id,
67
- user_id=project_owner_id,
68
- db=db,
69
- require_active=True,
70
- )
71
- except HTTPException as e:
72
- raise (
73
- HTTPException(
74
- status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
75
- detail="The task must be accessible to the project owner.",
76
- )
77
- if e.status_code == 403
78
- else e
79
- )
80
-
81
54
  task = await _get_task_read_access(
82
55
  task_id=task_id, user_id=user.id, db=db, require_active=True
83
56
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fractal-server
3
- Version: 2.18.0a1
3
+ Version: 2.18.0a2
4
4
  Summary: Backend component of the Fractal analytics platform
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- fractal_server/__init__.py,sha256=d1wgepBuIO5PKrE5xiGZw1xlgLPm7KgGhQwIApPL-xw,25
1
+ fractal_server/__init__.py,sha256=ymMa3khu1XbUTZPvgZZ7weboT819iCbAcr-inHWj9bk,25
2
2
  fractal_server/__main__.py,sha256=o63YYNPm6wv0YG5PTtxPselXY6g3ii5VoBP8blPGgK8,11423
3
3
  fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
4
4
  fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -59,7 +59,7 @@ fractal_server/app/routes/api/v2/task_group_lifecycle.py,sha256=g20Egnwlw8Qvm1Pz
59
59
  fractal_server/app/routes/api/v2/task_version_update.py,sha256=p0Bk8B7EZi9T0IWeDPqH7U7JNcjMGj1x72-ngZGgTOU,8497
60
60
  fractal_server/app/routes/api/v2/workflow.py,sha256=EW6u-_O6ox3DVBYgrllMfCMHC-DNetUNT6OZudbThko,10830
61
61
  fractal_server/app/routes/api/v2/workflow_import.py,sha256=zSCWKFzwIX2fWpxZJKXHbFk11nuUrgJL50-P0E_vYTc,9668
62
- fractal_server/app/routes/api/v2/workflowtask.py,sha256=R9yFTSfyIAfL42tNnbGUZ3CHSdko8-kSPKww9Erg4QE,9237
62
+ fractal_server/app/routes/api/v2/workflowtask.py,sha256=t4h7l63Kfr0vrD6OsN39YSDBXQyoyPqFX3hX7mYXk3U,8274
63
63
  fractal_server/app/routes/auth/__init__.py,sha256=RghfjGuu0RTW8RxBCvaePx9KErO4rTkI96XgbtbeSJU,2337
64
64
  fractal_server/app/routes/auth/_aux_auth.py,sha256=s_boxuhPC60j74NmE8FopYPv_Fc4hiADvL0beWPcuE0,5474
65
65
  fractal_server/app/routes/auth/current_user.py,sha256=Y_2Es3HFtTMuVUmWVHFFvk3vsRgmlqS_x5BwkeavlvI,5552
@@ -263,8 +263,8 @@ fractal_server/types/validators/_workflow_task_arguments_validators.py,sha256=zt
263
263
  fractal_server/urls.py,sha256=QjIKAC1a46bCdiPMu3AlpgFbcv6a4l3ABcd5xz190Og,471
264
264
  fractal_server/utils.py,sha256=-rjg8QTXQcKweXjn0NcmETFs1_uM9PGnbl0Q7c4ERPM,2181
265
265
  fractal_server/zip_tools.py,sha256=Uhn-ax4_9g1PJ32BdyaX30hFpAeVOv2tZYTUK-zVn1E,5719
266
- fractal_server-2.18.0a1.dist-info/METADATA,sha256=JjghryAslh4WzJasCM1A3DpZAEolcHca19OBC9HN1T8,4277
267
- fractal_server-2.18.0a1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
268
- fractal_server-2.18.0a1.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
269
- fractal_server-2.18.0a1.dist-info/licenses/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
270
- fractal_server-2.18.0a1.dist-info/RECORD,,
266
+ fractal_server-2.18.0a2.dist-info/METADATA,sha256=B1LorgKcZ-DA4V6EEu2lrU6wqLrv_5yo-9pJqSdwZmY,4277
267
+ fractal_server-2.18.0a2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
268
+ fractal_server-2.18.0a2.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
269
+ fractal_server-2.18.0a2.dist-info/licenses/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
270
+ fractal_server-2.18.0a2.dist-info/RECORD,,