fractal-server 2.7.0a2__py3-none-any.whl → 2.7.0a3__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.
- fractal_server/__init__.py +1 -1
- fractal_server/app/routes/api/v2/workflow.py +22 -3
- {fractal_server-2.7.0a2.dist-info → fractal_server-2.7.0a3.dist-info}/METADATA +1 -1
- {fractal_server-2.7.0a2.dist-info → fractal_server-2.7.0a3.dist-info}/RECORD +7 -7
- {fractal_server-2.7.0a2.dist-info → fractal_server-2.7.0a3.dist-info}/LICENSE +0 -0
- {fractal_server-2.7.0a2.dist-info → fractal_server-2.7.0a3.dist-info}/WHEEL +0 -0
- {fractal_server-2.7.0a2.dist-info → fractal_server-2.7.0a3.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "2.7.
|
1
|
+
__VERSION__ = "2.7.0a3"
|
@@ -134,7 +134,7 @@ async def read_workflow(
|
|
134
134
|
|
135
135
|
@router.patch(
|
136
136
|
"/project/{project_id}/workflow/{workflow_id}/",
|
137
|
-
response_model=
|
137
|
+
response_model=WorkflowReadV2WithWarnings,
|
138
138
|
)
|
139
139
|
async def update_workflow(
|
140
140
|
project_id: int,
|
@@ -142,7 +142,7 @@ async def update_workflow(
|
|
142
142
|
patch: WorkflowUpdateV2,
|
143
143
|
user: UserOAuth = Depends(current_active_user),
|
144
144
|
db: AsyncSession = Depends(get_async_db),
|
145
|
-
) -> Optional[
|
145
|
+
) -> Optional[WorkflowReadV2WithWarnings]:
|
146
146
|
"""
|
147
147
|
Edit a workflow
|
148
148
|
"""
|
@@ -184,7 +184,26 @@ async def update_workflow(
|
|
184
184
|
await db.refresh(workflow)
|
185
185
|
await db.close()
|
186
186
|
|
187
|
-
|
187
|
+
workflow_data = dict(
|
188
|
+
**workflow.model_dump(),
|
189
|
+
project=workflow.project,
|
190
|
+
)
|
191
|
+
task_list_with_warnings = []
|
192
|
+
for wftask in workflow.task_list:
|
193
|
+
wftask_data = dict(wftask.model_dump(), task=wftask.task)
|
194
|
+
try:
|
195
|
+
task_group = await _get_task_group_read_access(
|
196
|
+
task_group_id=wftask.task.taskgroupv2_id,
|
197
|
+
user_id=user.id,
|
198
|
+
db=db,
|
199
|
+
)
|
200
|
+
if not task_group.active:
|
201
|
+
wftask_data["warning"] = "Task is not active."
|
202
|
+
except HTTPException:
|
203
|
+
wftask_data["warning"] = "Current user has no access to this task."
|
204
|
+
task_list_with_warnings.append(wftask_data)
|
205
|
+
workflow_data["task_list"] = task_list_with_warnings
|
206
|
+
return workflow_data
|
188
207
|
|
189
208
|
|
190
209
|
@router.delete(
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fractal_server/__init__.py,sha256=
|
1
|
+
fractal_server/__init__.py,sha256=8F5In7R-H4qg5Yf7sXXB43RixMlW4SOmaCR83lziaso,24
|
2
2
|
fractal_server/__main__.py,sha256=KqGiemsvIhrBeUlFDzIQsMEjOJW2BsH4qo_a_ldRQok,6362
|
3
3
|
fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
|
4
4
|
fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -54,7 +54,7 @@ fractal_server/app/routes/api/v2/task.py,sha256=FRYHJTvr_tl62HvwKgHSayLrT0gCNeGw
|
|
54
54
|
fractal_server/app/routes/api/v2/task_collection.py,sha256=9trKrJDuaKKgdn-mG06VuFpyObhbcCD8AstaxN4lAOM,13507
|
55
55
|
fractal_server/app/routes/api/v2/task_collection_custom.py,sha256=CIJ4ZYPRtKvC6JVkagQPVFm6A53mOeDIPD8-y1lPJLc,7433
|
56
56
|
fractal_server/app/routes/api/v2/task_group.py,sha256=yRUCMZtXH9KdfD2pfdCKPBGf_eVn-S5CXFHCUyXAoJk,4078
|
57
|
-
fractal_server/app/routes/api/v2/workflow.py,sha256=
|
57
|
+
fractal_server/app/routes/api/v2/workflow.py,sha256=aG5hs7oj-em2EpydgBPE4xPKrlKxD6NXuLhKkfdG79c,12116
|
58
58
|
fractal_server/app/routes/api/v2/workflowtask.py,sha256=TIOePM13uK3GKVhtGK2wBB341ZFheBYQKTfXuPfdymE,6999
|
59
59
|
fractal_server/app/routes/auth/__init__.py,sha256=fao6CS0WiAjHDTvBzgBVV_bSXFpEAeDBF6Z6q7rRkPc,1658
|
60
60
|
fractal_server/app/routes/auth/_aux_auth.py,sha256=6GERRDXK4P-2OA81bjxJZEw6hN4QCk5x7MqDNtN7VG4,4746
|
@@ -225,8 +225,8 @@ fractal_server/tasks/v2/utils.py,sha256=JOyCacb6MNvrwfLNTyLwcz8y79J29YuJeJ2MK5kq
|
|
225
225
|
fractal_server/urls.py,sha256=5o_qq7PzKKbwq12NHSQZDmDitn5RAOeQ4xufu-2v9Zk,448
|
226
226
|
fractal_server/utils.py,sha256=b7WwFdcFZ8unyT65mloFToYuEDXpQoHRcmRNqrhd_dQ,2115
|
227
227
|
fractal_server/zip_tools.py,sha256=xYpzBshysD2nmxkD5WLYqMzPYUcCRM3kYy-7n9bJL-U,4426
|
228
|
-
fractal_server-2.7.
|
229
|
-
fractal_server-2.7.
|
230
|
-
fractal_server-2.7.
|
231
|
-
fractal_server-2.7.
|
232
|
-
fractal_server-2.7.
|
228
|
+
fractal_server-2.7.0a3.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
229
|
+
fractal_server-2.7.0a3.dist-info/METADATA,sha256=rovIICs2nBroN4xAIpjuVgTPhmY985uWMIuWQDPjl3g,4630
|
230
|
+
fractal_server-2.7.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
231
|
+
fractal_server-2.7.0a3.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
232
|
+
fractal_server-2.7.0a3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|