nucliadb 6.3.5.post3891__py3-none-any.whl → 6.3.5.post3896__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.
@@ -24,20 +24,18 @@ Rollover to update to nidx_texts v3
24
24
 
25
25
  """
26
26
 
27
- import logging
28
- import os
29
-
30
- from nucliadb.common.cluster.rollover import rollover_kb_index
31
27
  from nucliadb.migrator.context import ExecutionContext
32
28
 
33
- logger = logging.getLogger(__name__)
34
-
35
29
 
36
30
  async def migrate(context: ExecutionContext) -> None: ...
37
31
 
38
32
 
39
33
  async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
40
- if os.environ.get("RUNNING_ENVIRONMENT") == "stage":
41
- # Skip migration in stage environment, as we already migrated the indexes manually
42
- return
43
- await rollover_kb_index(context, kbid)
34
+ """
35
+ We only need 1 rollover migration defined at a time; otherwise, we will
36
+ possibly run many for a kb when we only ever need to run one
37
+ """
38
+ # if os.environ.get("RUNNING_ENVIRONMENT") == "stage":
39
+ # # Skip migration in stage environment, as we already migrated the indexes manually
40
+ # return
41
+ # await rollover_kb_index(context, kbid)
@@ -0,0 +1,35 @@
1
+ # Copyright (C) 2021 Bosutech XXI S.L.
2
+ #
3
+ # nucliadb is offered under the AGPL v3.0 and as commercial software.
4
+ # For commercial licensing, contact us at info@nuclia.com.
5
+ #
6
+ # AGPL:
7
+ # This program is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU Affero General Public License as
9
+ # published by the Free Software Foundation, either version 3 of the
10
+ # License, or (at your option) any later version.
11
+ #
12
+ # This program is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU Affero General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Affero General Public License
18
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ #
20
+
21
+ """Migration #35
22
+
23
+ Rollover to update to nidx_texts v4
24
+
25
+ """
26
+
27
+ from nucliadb.common.cluster.rollover import rollover_kb_index
28
+ from nucliadb.migrator.context import ExecutionContext
29
+
30
+
31
+ async def migrate(context: ExecutionContext) -> None: ...
32
+
33
+
34
+ async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
35
+ await rollover_kb_index(context, kbid)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.3.5.post3891
3
+ Version: 6.3.5.post3896
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.5.post3891
24
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.5.post3891
25
- Requires-Dist: nucliadb-protos>=6.3.5.post3891
26
- Requires-Dist: nucliadb-models>=6.3.5.post3891
27
- Requires-Dist: nidx-protos>=6.3.5.post3891
23
+ Requires-Dist: nucliadb-telemetry[all]>=6.3.5.post3896
24
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.5.post3896
25
+ Requires-Dist: nucliadb-protos>=6.3.5.post3896
26
+ Requires-Dist: nucliadb-models>=6.3.5.post3896
27
+ Requires-Dist: nidx-protos>=6.3.5.post3896
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[standard]
@@ -29,7 +29,8 @@ migrations/0030_label_deduplication.py,sha256=y14TxtCMi3-TBMz_eZoyyPDHNlZb29taJu
29
29
  migrations/0031_languages_deduplication.py,sha256=o6va6lP3oTRT1uSzp5MIhHHBFbhCxSZ-oNlXXpiAdUo,2340
30
30
  migrations/0032_remove_old_relations.py,sha256=ZaswhmRRsLgw6DVYVdT7cP-gdBf4X3PL9fklUXrmSD0,2318
31
31
  migrations/0033_rollover_nidx_relation_2.py,sha256=9etpqNLVS3PA14qIdsdhorReZxenDaBl-IJNN2AK_Fg,1340
32
- migrations/0034_rollover_nidx_texts_3.py,sha256=gI2BQ4ATq4iLesHtKRWbk4rM12ulWzSKSkytx8IFkAY,1414
32
+ migrations/0034_rollover_nidx_texts_3.py,sha256=t19QtWUgHxmTaBPoR1DooAby2IYmkLTQj8qu1z2XkFc,1452
33
+ migrations/0035_rollover_nidx_texts_4.py,sha256=W0_AUd01pjMpYMDC3yqF6HzDLgcnnPprL80kfyb1WZI,1187
33
34
  migrations/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
34
35
  migrations/pg/0001_bootstrap.py,sha256=Fsqkeof50m7fKiJN05kmNEMwiKDlOrAgcAS5sLLkutA,1256
35
36
  migrations/pg/0002_catalog.py,sha256=Rsleecu351Ty19kYZgOpqX5G3MEAY8nMxCJrAeuS2Mw,1690
@@ -355,8 +356,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
355
356
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
356
357
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
357
358
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
358
- nucliadb-6.3.5.post3891.dist-info/METADATA,sha256=dLuElqTJ0Wx73AZ-8H2LvBzC_cvwH2NMuvjZk2vFVQo,4301
359
- nucliadb-6.3.5.post3891.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
360
- nucliadb-6.3.5.post3891.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
361
- nucliadb-6.3.5.post3891.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
362
- nucliadb-6.3.5.post3891.dist-info/RECORD,,
359
+ nucliadb-6.3.5.post3896.dist-info/METADATA,sha256=QglHKkyM2T5ufYu07xhSSv9XUQtfxji-0suFpeyRiHw,4301
360
+ nucliadb-6.3.5.post3896.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
361
+ nucliadb-6.3.5.post3896.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
362
+ nucliadb-6.3.5.post3896.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
363
+ nucliadb-6.3.5.post3896.dist-info/RECORD,,