nucliadb 6.3.1.post3504__py3-none-any.whl → 6.3.1.post3519__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.
- nucliadb/ingest/orm/processor/processor.py +9 -3
- nucliadb/ingest/orm/resource.py +0 -3
- nucliadb/writer/api/v1/upload.py +3 -3
- {nucliadb-6.3.1.post3504.dist-info → nucliadb-6.3.1.post3519.dist-info}/METADATA +6 -6
- {nucliadb-6.3.1.post3504.dist-info → nucliadb-6.3.1.post3519.dist-info}/RECORD +8 -8
- {nucliadb-6.3.1.post3504.dist-info → nucliadb-6.3.1.post3519.dist-info}/WHEEL +0 -0
- {nucliadb-6.3.1.post3504.dist-info → nucliadb-6.3.1.post3519.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.3.1.post3504.dist-info → nucliadb-6.3.1.post3519.dist-info}/top_level.txt +0 -0
@@ -314,12 +314,18 @@ class Processor:
|
|
314
314
|
# index message
|
315
315
|
|
316
316
|
if resource:
|
317
|
-
await resource.compute_global_text()
|
318
|
-
await resource.compute_global_tags(resource.indexer)
|
319
|
-
await resource.compute_security(resource.indexer)
|
320
317
|
if message.reindex:
|
321
318
|
# when reindexing, let's just generate full new index message
|
319
|
+
# TODO - This should be improved in the future as it's not optimal for very large resources:
|
320
|
+
# As of now, there are some API operations that require fully reindexing all the fields of a resource.
|
321
|
+
# An example of this is classification label changes - we need to reindex all the fields of a resource to
|
322
|
+
# propagate the label changes to the index.
|
322
323
|
resource.replace_indexer(await resource.generate_index_message(reindex=True))
|
324
|
+
else:
|
325
|
+
# TODO - Ideally we should only update the fields that have been changed in the current transaction.
|
326
|
+
await resource.compute_global_text()
|
327
|
+
await resource.compute_global_tags(resource.indexer)
|
328
|
+
await resource.compute_security(resource.indexer)
|
323
329
|
|
324
330
|
if resource and resource.modified:
|
325
331
|
await pgcatalog_update(txn, kbid, resource)
|
nucliadb/ingest/orm/resource.py
CHANGED
@@ -304,10 +304,7 @@ class Resource:
|
|
304
304
|
@processor_observer.wrap({"type": "generate_index_message"})
|
305
305
|
async def generate_index_message(self, reindex: bool = False) -> ResourceBrain:
|
306
306
|
brain = ResourceBrain(rid=self.uuid)
|
307
|
-
origin = await self.get_origin()
|
308
307
|
basic = await self.get_basic()
|
309
|
-
if basic is not None:
|
310
|
-
brain.set_resource_metadata(basic, origin)
|
311
308
|
await self.compute_security(brain)
|
312
309
|
await self.compute_global_tags(brain)
|
313
310
|
fields = await self.get_fields(force=True)
|
nucliadb/writer/api/v1/upload.py
CHANGED
@@ -269,7 +269,7 @@ async def _tus_post(
|
|
269
269
|
if request_content_type is None:
|
270
270
|
request_content_type = content_types.guess(metadata["filename"]) or "application/octet-stream"
|
271
271
|
|
272
|
-
if request_content_type is not None and not content_types.valid(request_content_type):
|
272
|
+
if False and request_content_type is not None and not content_types.valid(request_content_type):
|
273
273
|
raise HTTPException(
|
274
274
|
status_code=415,
|
275
275
|
detail=f"Unsupported content type: {request_content_type}",
|
@@ -555,7 +555,7 @@ async def _tus_patch(
|
|
555
555
|
creation_payload = pickle.loads(base64.b64decode(item_payload))
|
556
556
|
|
557
557
|
content_type = dm.get("metadata", {}).get("content_type")
|
558
|
-
if content_type is not None and not content_types.valid(content_type):
|
558
|
+
if False and content_type is not None and not content_types.valid(content_type):
|
559
559
|
return HTTPClientError(
|
560
560
|
status_code=415,
|
561
561
|
detail=f"Unsupported content type: {content_type}",
|
@@ -744,7 +744,7 @@ async def _upload(
|
|
744
744
|
if content_type is None:
|
745
745
|
content_type = content_types.guess(filename) or "application/octet-stream"
|
746
746
|
|
747
|
-
if not content_types.valid(content_type):
|
747
|
+
if False and not content_types.valid(content_type):
|
748
748
|
raise HTTPException(
|
749
749
|
status_code=415,
|
750
750
|
detail=f"Unsupported content type: {content_type}",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.3.1.
|
3
|
+
Version: 6.3.1.post3519
|
4
4
|
Summary: NucliaDB
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License: AGPL
|
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
21
21
|
Requires-Python: <4,>=3.9
|
22
22
|
Description-Content-Type: text/markdown
|
23
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.3.1.
|
24
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.1.
|
25
|
-
Requires-Dist: nucliadb-protos>=6.3.1.
|
26
|
-
Requires-Dist: nucliadb-models>=6.3.1.
|
27
|
-
Requires-Dist: nidx-protos>=6.3.1.
|
23
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.3.1.post3519
|
24
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.1.post3519
|
25
|
+
Requires-Dist: nucliadb-protos>=6.3.1.post3519
|
26
|
+
Requires-Dist: nucliadb-models>=6.3.1.post3519
|
27
|
+
Requires-Dist: nidx-protos>=6.3.1.post3519
|
28
28
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
29
29
|
Requires-Dist: nuclia-models>=0.24.2
|
30
30
|
Requires-Dist: uvicorn
|
@@ -135,13 +135,13 @@ nucliadb/ingest/orm/entities.py,sha256=3_n6lKhBy2GsdmNmkh0_mvxP8md20OZsbtTNEmfJ8
|
|
135
135
|
nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmBX5MY,1432
|
136
136
|
nucliadb/ingest/orm/knowledgebox.py,sha256=IGOPvBR1qXqDxE5DeiOdYCLdPgjzOVVpsASJ2zYvWwQ,23651
|
137
137
|
nucliadb/ingest/orm/metrics.py,sha256=OkwMSPKLZcKba0ZTwtTiIxwBgaLMX5ydhGieKvi2y7E,1096
|
138
|
-
nucliadb/ingest/orm/resource.py,sha256=
|
138
|
+
nucliadb/ingest/orm/resource.py,sha256=pKDqw193lLR4dHlggNe0-V3d6UCoikSfhfmhpOvaDc0,44625
|
139
139
|
nucliadb/ingest/orm/utils.py,sha256=vCe_9UxHu26JDFGLwQ0wH-XyzJIpQCTK-Ow9dtZR5Vg,2716
|
140
140
|
nucliadb/ingest/orm/processor/__init__.py,sha256=Aqd9wCNTvggkMkCY3WvoI8spdr94Jnqk-0iq9XpLs18,922
|
141
141
|
nucliadb/ingest/orm/processor/auditing.py,sha256=TeYhXGJRyQ7ROytbb2u8R0fIh_FYi3HgTu3S1ribY3U,4623
|
142
142
|
nucliadb/ingest/orm/processor/data_augmentation.py,sha256=HpSU9olDHcTfECDYCsmm4yA-Hu0mBrd_zTtx50XDGFE,5164
|
143
143
|
nucliadb/ingest/orm/processor/pgcatalog.py,sha256=f32PIEXWktWzGDws6Ffife37OAfrseP5IOti_Cb4ir8,3012
|
144
|
-
nucliadb/ingest/orm/processor/processor.py,sha256=
|
144
|
+
nucliadb/ingest/orm/processor/processor.py,sha256=oaiZ9HUszhUbvNMCmDq5Xj_jtXiCDjMEyw2GqqQxFdY,31550
|
145
145
|
nucliadb/ingest/orm/processor/sequence_manager.py,sha256=uqEphtI1Ir_yk9jRl2gPf7BlzzXWovbARY5MNZSBI_8,1704
|
146
146
|
nucliadb/ingest/service/__init__.py,sha256=MME_G_ERxzJR6JW_hfE2qcfXpmpH1kdG-S0a-M0qRm8,2043
|
147
147
|
nucliadb/ingest/service/exceptions.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
@@ -323,7 +323,7 @@ nucliadb/writer/api/v1/router.py,sha256=RjuoWLpZer6Kl2BW_wznpNo6XL3BOpdTGqXZCn3Q
|
|
323
323
|
nucliadb/writer/api/v1/services.py,sha256=THnBnRxiHrEZPpBTL-E-vplEUfcD-fZpuslKRonM6xs,10286
|
324
324
|
nucliadb/writer/api/v1/slug.py,sha256=xlVBDBpRi9bNulpBHZwhyftVvulfE0zFm1XZIWl-AKY,2389
|
325
325
|
nucliadb/writer/api/v1/transaction.py,sha256=d2Vbgnkk_-FLGSTt3vfldwiJIUf0XoyD0wP1jQNz_DY,2430
|
326
|
-
nucliadb/writer/api/v1/upload.py,sha256=
|
326
|
+
nucliadb/writer/api/v1/upload.py,sha256=JEEHYdjJT61tw_g79Sv25rxnlOqcrSEG9HAHkLaQkjw,33191
|
327
327
|
nucliadb/writer/api/v1/vectorsets.py,sha256=mESaXkkI9f-jWWMW61ZZgv7E5YWXKemyc6vwT0lFXns,6747
|
328
328
|
nucliadb/writer/resource/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
329
329
|
nucliadb/writer/resource/audit.py,sha256=FvxMZPzrNHtd31HgpZEvxzwAkbxJTZRhPLqRYYJi3tA,1426
|
@@ -339,8 +339,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
339
339
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
340
340
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
341
341
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
342
|
-
nucliadb-6.3.1.
|
343
|
-
nucliadb-6.3.1.
|
344
|
-
nucliadb-6.3.1.
|
345
|
-
nucliadb-6.3.1.
|
346
|
-
nucliadb-6.3.1.
|
342
|
+
nucliadb-6.3.1.post3519.dist-info/METADATA,sha256=RzdyyyV50AcY6Vta5vvMVkAyB5j8JQai1fCOHgkfBWk,4291
|
343
|
+
nucliadb-6.3.1.post3519.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
344
|
+
nucliadb-6.3.1.post3519.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
345
|
+
nucliadb-6.3.1.post3519.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
346
|
+
nucliadb-6.3.1.post3519.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|