fractal-server 2.16.5__py3-none-any.whl → 2.16.6__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.16.5"
1
+ __VERSION__ = "2.16.6"
@@ -8,9 +8,8 @@ from sqlalchemy.types import DateTime
8
8
  from sqlmodel import Field
9
9
  from sqlmodel import SQLModel
10
10
 
11
- from ....utils import get_timestamp
12
- from ...schemas.v2 import JobStatusTypeV2
13
- from fractal_server.types import AttributeFilters
11
+ from fractal_server.app.schemas.v2 import JobStatusTypeV2
12
+ from fractal_server.utils import get_timestamp
14
13
 
15
14
 
16
15
  class JobV2(SQLModel, table=True):
@@ -57,7 +56,7 @@ class JobV2(SQLModel, table=True):
57
56
  log: str | None = None
58
57
  executor_error_log: str | None = None
59
58
 
60
- attribute_filters: AttributeFilters = Field(
59
+ attribute_filters: dict[str, list[int | float | str | bool]] = Field(
61
60
  sa_column=Column(JSONB, nullable=False, server_default="{}")
62
61
  )
63
62
  type_filters: dict[str, bool] = Field(
@@ -149,7 +149,7 @@ async def _get_task_by_taskimport(
149
149
 
150
150
  # Filter task groups by version
151
151
  final_matching_task_groups = list(
152
- filter(lambda tg: tg.version == version, task_groups_list)
152
+ filter(lambda tg: tg.version == version, matching_task_groups)
153
153
  )
154
154
 
155
155
  if len(final_matching_task_groups) < 1:
@@ -167,10 +167,11 @@ async def _get_task_by_taskimport(
167
167
  else:
168
168
  logger.info(
169
169
  "[_get_task_by_taskimport] "
170
- "Found many task groups, after filtering by version."
170
+ f"Found {len(final_matching_task_groups)} task groups, "
171
+ "after filtering by version."
171
172
  )
172
173
  final_task_group = await _disambiguate_task_groups(
173
- matching_task_groups=matching_task_groups,
174
+ matching_task_groups=final_matching_task_groups,
174
175
  user_id=user_id,
175
176
  db=db,
176
177
  default_group_id=default_group_id,
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: fractal-server
3
- Version: 2.16.5
3
+ Version: 2.16.6
4
4
  Summary: Backend component of the Fractal analytics platform
5
- License: BSD-3-Clause
5
+ License-Expression: BSD-3-Clause
6
+ License-File: LICENSE
6
7
  Author: Tommaso Comparin
7
8
  Author-email: tommaso.comparin@exact-lab.it
8
9
  Requires-Python: >=3.11,<3.14
9
- Classifier: License :: OSI Approved :: BSD License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
@@ -19,7 +19,7 @@ Requires-Dist: fastapi-users[oauth] (>=14,<15)
19
19
  Requires-Dist: gunicorn (>=23.0,<24.0)
20
20
  Requires-Dist: packaging (>=25.0.0,<26.0.0)
21
21
  Requires-Dist: psycopg[binary] (>=3.1.0,<4.0.0)
22
- Requires-Dist: pydantic (>=2.11.0,<2.12.0)
22
+ Requires-Dist: pydantic (>=2.12.0,<2.13.0)
23
23
  Requires-Dist: pydantic-settings (==2.11.0)
24
24
  Requires-Dist: python-dotenv (>=1.1.0,<1.2.0)
25
25
  Requires-Dist: sqlalchemy[asyncio] (>=2.0.23,<2.1)
@@ -1,4 +1,4 @@
1
- fractal_server/__init__.py,sha256=Hfv7cG0-XL4HXFzgAjO3EJo9hyAHfURKZqlS1xXyvho,23
1
+ fractal_server/__init__.py,sha256=HkwgigzT_5V7NQiM48xVfHWQx7re2IPcSZilVlAi1PY,23
2
2
  fractal_server/__main__.py,sha256=rkM8xjY1KeS3l63irB8yCrlVobR-73uDapC4wvrIlxI,6957
3
3
  fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
4
4
  fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,7 +12,7 @@ fractal_server/app/models/v2/__init__.py,sha256=vjHwek7-IXmaZZL9VF0nD30YL9ca4wNc
12
12
  fractal_server/app/models/v2/accounting.py,sha256=i-2TsjqyuclxFQ21C-TeDoss7ZBTRuXdzIJfVr2UxwE,1081
13
13
  fractal_server/app/models/v2/dataset.py,sha256=P_zy4dPQAqrCALQ6737VkAFk1SvcgYjnslGUZhPI8sc,1226
14
14
  fractal_server/app/models/v2/history.py,sha256=CBN2WVg9vW5pHU1RP8TkB_nnJrwnuifCcxgnd53UtEE,2163
15
- fractal_server/app/models/v2/job.py,sha256=RsJY5B-HBOa2uMJYDefMbe8traBVIbwheAWk4H79EcU,2040
15
+ fractal_server/app/models/v2/job.py,sha256=YYzt3ef2CU1WXFNjlltR3ft2kM9T0Hq8oskSipQSxuM,2042
16
16
  fractal_server/app/models/v2/project.py,sha256=XLna1SSKdywdDS3qfcVaGtafyVKMZq6CiLvHOe-AjhU,754
17
17
  fractal_server/app/models/v2/task.py,sha256=iBIQB8POQE5MyKvLZhw7jZWlBhbrThzCDzRTcgiAczQ,1493
18
18
  fractal_server/app/models/v2/task_group.py,sha256=kMHvCROfQZ6Tl7iEOjM9sXQ0qvFSu6Kkg_5pKeP011Y,4590
@@ -52,7 +52,7 @@ fractal_server/app/routes/api/v2/task_group.py,sha256=An8EAwZDNx53TVnGBhjgeW7RI_
52
52
  fractal_server/app/routes/api/v2/task_group_lifecycle.py,sha256=DDwFy9TUchUkRTigPSlA6biZZY0wbb8NAZtdo_XYO7E,12289
53
53
  fractal_server/app/routes/api/v2/task_version_update.py,sha256=zBYlyqN0UvCfnkqcg945b5jNMRNjSUKJvBz6IPxC0qo,8236
54
54
  fractal_server/app/routes/api/v2/workflow.py,sha256=iTIasNP2I5ovhHafQ2P8JJuImAl41ucy5y64J7FiP3w,10701
55
- fractal_server/app/routes/api/v2/workflow_import.py,sha256=GUEl8HIFcDZ2XaA93t4W6PYC3ALX2XnJGBHH9Yr8q50,9028
55
+ fractal_server/app/routes/api/v2/workflow_import.py,sha256=fsYnFAOwtOR7u2Hod1ij7i_BQjnA2jv2EKzuSPG_pEc,9083
56
56
  fractal_server/app/routes/api/v2/workflowtask.py,sha256=gwFvC-qU4yb-Q5ey30rOD4u3D0-4jlJzBTuq8udqpzc,7930
57
57
  fractal_server/app/routes/auth/__init__.py,sha256=fao6CS0WiAjHDTvBzgBVV_bSXFpEAeDBF6Z6q7rRkPc,1658
58
58
  fractal_server/app/routes/auth/_aux_auth.py,sha256=UZgauY0V6mSqjte_sYI1cBl2h8bcbLaeWzgpl1jdJlk,4883
@@ -236,8 +236,8 @@ fractal_server/types/validators/_workflow_task_arguments_validators.py,sha256=HL
236
236
  fractal_server/urls.py,sha256=QjIKAC1a46bCdiPMu3AlpgFbcv6a4l3ABcd5xz190Og,471
237
237
  fractal_server/utils.py,sha256=Vn35lApt1T1J8nc09sAVqd10Cy0sa3dLipcljI-hkuk,2185
238
238
  fractal_server/zip_tools.py,sha256=H0w7wS5yE4ebj7hw1_77YQ959dl2c-L0WX6J_ro1TY4,4884
239
- fractal_server-2.16.5.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
240
- fractal_server-2.16.5.dist-info/METADATA,sha256=gPfqUHwJy1CdFX2rB3KoegmVJbFJ6JGbCSf52xVeleA,4335
241
- fractal_server-2.16.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
242
- fractal_server-2.16.5.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
243
- fractal_server-2.16.5.dist-info/RECORD,,
239
+ fractal_server-2.16.6.dist-info/METADATA,sha256=vqheZTD-J5Odoykvs4TC65GTB1K0mmluDxwAmxUnKso,4317
240
+ fractal_server-2.16.6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
241
+ fractal_server-2.16.6.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
242
+ fractal_server-2.16.6.dist-info/licenses/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
243
+ fractal_server-2.16.6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any