nucliadb 6.8.1.post4969__py3-none-any.whl → 6.8.1.post4979__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.

Potentially problematic release.


This version of nucliadb might be problematic. Click here for more details.

@@ -25,6 +25,7 @@ from nuclia_models.config.proto import ExtractConfig, SplitConfiguration
25
25
 
26
26
  from nucliadb.learning_proxy import learning_config_proxy
27
27
  from nucliadb.models.responses import HTTPClientError
28
+ from nucliadb.reader import logger
28
29
  from nucliadb.reader.api.v1.router import KB_PREFIX, api
29
30
  from nucliadb_models.resource import NucliaDBRoles
30
31
  from nucliadb_utils.authentication import requires_one
@@ -125,11 +126,16 @@ async def get_schema_for_configuration_updates(
125
126
  request: Request,
126
127
  kbid: str,
127
128
  ):
129
+ account_id = request.headers.get("x-nucliadb-account", "")
130
+ if not account_id:
131
+ logger.warning(
132
+ "Account header not sent by authorizer", extra={"request_headers": request.headers}
133
+ )
128
134
  return await learning_config_proxy(
129
135
  request,
130
136
  "GET",
131
137
  f"/schema/{kbid}",
132
- headers={"account-id": request.headers.get("x-nucliadb-account", "")},
138
+ headers={"account-id": account_id},
133
139
  )
134
140
 
135
141
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.8.1.post4969
3
+ Version: 6.8.1.post4979
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.8.1.post4969
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.8.1.post4969
24
- Requires-Dist: nucliadb-protos>=6.8.1.post4969
25
- Requires-Dist: nucliadb-models>=6.8.1.post4969
26
- Requires-Dist: nidx-protos>=6.8.1.post4969
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.8.1.post4979
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.8.1.post4979
24
+ Requires-Dist: nucliadb-protos>=6.8.1.post4979
25
+ Requires-Dist: nucliadb-models>=6.8.1.post4979
26
+ Requires-Dist: nidx-protos>=6.8.1.post4979
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.47.0
29
29
  Requires-Dist: uvicorn[standard]
@@ -206,7 +206,7 @@ nucliadb/reader/api/v1/__init__.py,sha256=ieP8lsCCwG66Jupv8II5MSTj6nh3eCtLcF4utH
206
206
  nucliadb/reader/api/v1/download.py,sha256=F48YM3BPwuHwDgYk0jjRHHJHh732QUb4nCAS5xyNqzg,10819
207
207
  nucliadb/reader/api/v1/export_import.py,sha256=x4VBNDFjnlY1nIt5kdq0eZTB_DeRzGzT8T7uB7wUhNU,6448
208
208
  nucliadb/reader/api/v1/knowledgebox.py,sha256=e8q7v5JwGxsuPZLc_GkUOkWWSJMI2o483bK9ywhdkk8,3612
209
- nucliadb/reader/api/v1/learning_config.py,sha256=jDvjhvDgaa8LCLFeDlvEKsh-87BUr2CE93GFsuwqoJ0,6855
209
+ nucliadb/reader/api/v1/learning_config.py,sha256=SItQbdISCuJS0i0RHU6vAwXpHEelxrf_cZK5yQak4PE,7071
210
210
  nucliadb/reader/api/v1/resource.py,sha256=WTBIEywfHfy4sIffnVm9s__3--JpHi9hprVpK0Ddd04,14164
211
211
  nucliadb/reader/api/v1/router.py,sha256=eyNmEGSP9zHkCIG5XlAXl6sukq950B7gFT3X2peMtIE,1011
212
212
  nucliadb/reader/api/v1/services.py,sha256=Fcj4fRDBNnIwnf5Q3VZxpP_6UwdPYOtyEZUGr9_lhqo,13438
@@ -379,8 +379,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
379
379
  nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
380
380
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
381
381
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
382
- nucliadb-6.8.1.post4969.dist-info/METADATA,sha256=nYA6asHxehL1n_SKC9CZ_qbOYqAzMlqw1C0xjZJhvkY,4158
383
- nucliadb-6.8.1.post4969.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
384
- nucliadb-6.8.1.post4969.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
385
- nucliadb-6.8.1.post4969.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
386
- nucliadb-6.8.1.post4969.dist-info/RECORD,,
382
+ nucliadb-6.8.1.post4979.dist-info/METADATA,sha256=Bp9I_V8pCDvtLHcCCtORjqkA_EQLt7Cy51GIFWI4LrY,4158
383
+ nucliadb-6.8.1.post4979.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
384
+ nucliadb-6.8.1.post4979.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
385
+ nucliadb-6.8.1.post4979.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
386
+ nucliadb-6.8.1.post4979.dist-info/RECORD,,