nucliadb 6.6.1.post4710__py3-none-any.whl → 6.6.1.post4713__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.
@@ -470,7 +470,9 @@ class Resource:
470
470
 
471
471
  # We infer the status for processor messages
472
472
  if message.source == BrokerMessage.MessageSource.PROCESSOR:
473
- if len(status.errors) > 0:
473
+ if any(
474
+ (e.source_error.severity == writer_pb2.Error.Severity.ERROR for e in status.errors)
475
+ ):
474
476
  status.status = writer_pb2.FieldStatus.Status.ERROR
475
477
  else:
476
478
  status.status = writer_pb2.FieldStatus.Status.PROCESSED
@@ -511,7 +513,8 @@ class Resource:
511
513
  f.status == writer_pb2.FieldStatus.Status.ERROR
512
514
  and any(
513
515
  (
514
- e.source_error.code != writer_pb2.Error.ErrorCode.DATAAUGMENTATION
516
+ e.source_error.severity == writer_pb2.Error.Severity.ERROR
517
+ and e.source_error.code != writer_pb2.Error.ErrorCode.DATAAUGMENTATION
515
518
  for e in f.errors
516
519
  )
517
520
  )
@@ -51,6 +51,7 @@ from nucliadb_models.resource import (
51
51
  )
52
52
  from nucliadb_models.search import ResourceProperties
53
53
  from nucliadb_models.security import ResourceSecurity
54
+ from nucliadb_protos import writer_pb2
54
55
  from nucliadb_protos.writer_pb2 import FieldStatus
55
56
  from nucliadb_utils.utilities import get_storage
56
57
 
@@ -164,8 +165,9 @@ async def serialize_field_errors(
164
165
  Error(
165
166
  body=error.source_error.error,
166
167
  code=error.source_error.code,
167
- code_str=error.source_error.ErrorCode.Name(error.source_error.code),
168
+ code_str=writer_pb2.Error.ErrorCode.Name(error.source_error.code),
168
169
  created=error.created.ToDatetime(),
170
+ severity=writer_pb2.Error.Severity.Name(error.source_error.severity),
169
171
  )
170
172
  )
171
173
  serialized.error = serialized.errors[-1]
@@ -51,7 +51,7 @@ from nucliadb_models.resource import (
51
51
  ResourcePagination,
52
52
  )
53
53
  from nucliadb_models.search import ResourceProperties
54
- from nucliadb_protos import resources_pb2
54
+ from nucliadb_protos import resources_pb2, writer_pb2
55
55
  from nucliadb_protos.writer_pb2 import FieldStatus
56
56
  from nucliadb_telemetry import errors
57
57
  from nucliadb_utils.authentication import requires, requires_one
@@ -400,8 +400,9 @@ async def _get_resource_field(
400
400
  Error(
401
401
  body=error.source_error.error,
402
402
  code=error.source_error.code,
403
- code_str=error.source_error.ErrorCode.Name(error.source_error.code),
403
+ code_str=writer_pb2.Error.ErrorCode.Name(error.source_error.code),
404
404
  created=error.created.ToDatetime(),
405
+ severity=writer_pb2.Error.Severity.Name(error.source_error.severity),
405
406
  )
406
407
  )
407
408
  resource_field.error = resource_field.errors[-1]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.6.1.post4710
3
+ Version: 6.6.1.post4713
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: <4,>=3.9
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: nucliadb-telemetry[all]>=6.6.1.post4710
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.6.1.post4710
24
- Requires-Dist: nucliadb-protos>=6.6.1.post4710
25
- Requires-Dist: nucliadb-models>=6.6.1.post4710
26
- Requires-Dist: nidx-protos>=6.6.1.post4710
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.6.1.post4713
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.6.1.post4713
24
+ Requires-Dist: nucliadb-protos>=6.6.1.post4713
25
+ Requires-Dist: nucliadb-models>=6.6.1.post4713
26
+ Requires-Dist: nidx-protos>=6.6.1.post4713
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.43.0
29
29
  Requires-Dist: uvicorn[standard]
@@ -135,7 +135,7 @@ nucliadb/ingest/app.py,sha256=qiPad2eWgudRdLq0tB0MQZOxOezXO7QBK_ZpPNKQZO0,7378
135
135
  nucliadb/ingest/partitions.py,sha256=2NIhMYbNT0TNBL6bX1UMSi7vxFGICstCKEqsB0TXHOE,2410
136
136
  nucliadb/ingest/processing.py,sha256=gAm591llkscMq0abhxQmpChDZIzto-76Dni4f7Flhfw,21229
137
137
  nucliadb/ingest/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
- nucliadb/ingest/serialize.py,sha256=-TIjibJTbMqAowzRvyrG3R209vKqBZqXpdrQL9Dq4lo,16135
138
+ nucliadb/ingest/serialize.py,sha256=6byE0TIenJK4zOBx-MQI7H_9NaRDTEqKYIossycRbns,16262
139
139
  nucliadb/ingest/settings.py,sha256=5qJICxwYb028a2iAhVbxOJB5X-hWtDLtiya-YhWostw,3179
140
140
  nucliadb/ingest/utils.py,sha256=l1myURu3r8oA11dx3GpHw-gNTUc1AFX8xdPm9Lgl2rA,2275
141
141
  nucliadb/ingest/consumer/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
@@ -163,7 +163,7 @@ nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmB
163
163
  nucliadb/ingest/orm/index_message.py,sha256=DWMTHJoVamUbK8opKl5csDvxfgz7c2j7phG1Ut4yIxk,15724
164
164
  nucliadb/ingest/orm/knowledgebox.py,sha256=_rkeTMIXMhR64gbYtZpFHoUHghV2DTJ2lUBqZsoqC_4,23898
165
165
  nucliadb/ingest/orm/metrics.py,sha256=OiuggTh-n3kZHA2G73NEUdIlh8c3yFrbusI88DK-Mko,1273
166
- nucliadb/ingest/orm/resource.py,sha256=G3efCiOnaIW0pdPtB28PkKgaOEE-7A5PnugBu3f9-OQ,38589
166
+ nucliadb/ingest/orm/resource.py,sha256=MfKGHTj-hxIoSC_8_86OPfRbaQOTHGkADZIvQ_7dKW4,38780
167
167
  nucliadb/ingest/orm/utils.py,sha256=fCQRuyecgqhaY7mcBG93oaXMkzkKb9BFjOcy4-ZiSNw,2693
168
168
  nucliadb/ingest/orm/processor/__init__.py,sha256=Aqd9wCNTvggkMkCY3WvoI8spdr94Jnqk-0iq9XpLs18,922
169
169
  nucliadb/ingest/orm/processor/auditing.py,sha256=TeYhXGJRyQ7ROytbb2u8R0fIh_FYi3HgTu3S1ribY3U,4623
@@ -203,7 +203,7 @@ nucliadb/reader/api/v1/download.py,sha256=rGv1c5CjrJheDgGwAnNWy76A_4V2shqqHYvwmK
203
203
  nucliadb/reader/api/v1/export_import.py,sha256=x4VBNDFjnlY1nIt5kdq0eZTB_DeRzGzT8T7uB7wUhNU,6448
204
204
  nucliadb/reader/api/v1/knowledgebox.py,sha256=Uu-yPB8KKZt1VaFrFNMMaXOvLsclBJDK9dzZ9lF2ctI,3645
205
205
  nucliadb/reader/api/v1/learning_config.py,sha256=CZ7pFXzBZkJE2dXbC1wArszJw_ZLpuEb6gnsz2MKEz0,5525
206
- nucliadb/reader/api/v1/resource.py,sha256=SFIv_vpgkdJQv7L_UgYZS5FvubipJ0ligpExGDjKHV0,14064
206
+ nucliadb/reader/api/v1/resource.py,sha256=oCZGisVv5-t67MmokIpwaqJq5suE6YphR1QoCUmM174,14172
207
207
  nucliadb/reader/api/v1/router.py,sha256=eyNmEGSP9zHkCIG5XlAXl6sukq950B7gFT3X2peMtIE,1011
208
208
  nucliadb/reader/api/v1/services.py,sha256=Q2n-QMfAVzSylu6qTUuPa6L3AfZ9jS3azVlfQdSqlA4,13443
209
209
  nucliadb/reader/api/v1/vectorsets.py,sha256=insTwaykshz442cMKa2VP74wJwvZrIYi0U7M9EM3aCM,1822
@@ -376,8 +376,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
376
376
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
377
377
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
378
378
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
379
- nucliadb-6.6.1.post4710.dist-info/METADATA,sha256=vPdwCsZUECgYvuWNdIstrQfrJ4NQu6aUzDo8vWpukpc,4158
380
- nucliadb-6.6.1.post4710.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
381
- nucliadb-6.6.1.post4710.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
382
- nucliadb-6.6.1.post4710.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
383
- nucliadb-6.6.1.post4710.dist-info/RECORD,,
379
+ nucliadb-6.6.1.post4713.dist-info/METADATA,sha256=W3mFQx54-8YGTOxmIdQouE0dmXdKhE6QMhCCwDPNRbg,4158
380
+ nucliadb-6.6.1.post4713.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
381
+ nucliadb-6.6.1.post4713.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
382
+ nucliadb-6.6.1.post4713.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
383
+ nucliadb-6.6.1.post4713.dist-info/RECORD,,