nucliadb 6.3.4.post3726__py3-none-any.whl → 6.3.4.post3732__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.
- migrations/0027_rollover_texts3.py +4 -2
- migrations/0033_rollover_nidx_relation_2.py +39 -0
- {nucliadb-6.3.4.post3726.dist-info → nucliadb-6.3.4.post3732.dist-info}/METADATA +6 -6
- {nucliadb-6.3.4.post3726.dist-info → nucliadb-6.3.4.post3732.dist-info}/RECORD +7 -6
- {nucliadb-6.3.4.post3726.dist-info → nucliadb-6.3.4.post3732.dist-info}/WHEEL +0 -0
- {nucliadb-6.3.4.post3726.dist-info → nucliadb-6.3.4.post3732.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.3.4.post3726.dist-info → nucliadb-6.3.4.post3732.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,6 @@ import logging
|
|
27
27
|
|
28
28
|
from nucliadb import learning_proxy
|
29
29
|
from nucliadb.common import datamanagers
|
30
|
-
from nucliadb.common.cluster.rollover import rollover_kb_index
|
31
30
|
from nucliadb.migrator.context import ExecutionContext
|
32
31
|
|
33
32
|
logger = logging.getLogger(__name__)
|
@@ -38,7 +37,10 @@ async def migrate(context: ExecutionContext) -> None: ...
|
|
38
37
|
|
39
38
|
async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
|
40
39
|
await maybe_fix_vector_dimensions(context, kbid)
|
41
|
-
|
40
|
+
|
41
|
+
# We only need 1 rollover migration defined at a time; otherwise, we will
|
42
|
+
# possibly run many for a kb when we only ever need to run one
|
43
|
+
# await rollover_kb_index(context, kbid)
|
42
44
|
|
43
45
|
|
44
46
|
async def maybe_fix_vector_dimensions(context: ExecutionContext, kbid: str) -> None:
|
@@ -0,0 +1,39 @@
|
|
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 #33
|
22
|
+
|
23
|
+
Rollover to update to nidx_relation v2
|
24
|
+
|
25
|
+
"""
|
26
|
+
|
27
|
+
import logging
|
28
|
+
|
29
|
+
from nucliadb.common.cluster.rollover import rollover_kb_index
|
30
|
+
from nucliadb.migrator.context import ExecutionContext
|
31
|
+
|
32
|
+
logger = logging.getLogger(__name__)
|
33
|
+
|
34
|
+
|
35
|
+
async def migrate(context: ExecutionContext) -> None: ...
|
36
|
+
|
37
|
+
|
38
|
+
async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
|
39
|
+
await rollover_kb_index(context, kbid)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.3.4.
|
3
|
+
Version: 6.3.4.post3732
|
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.4.
|
24
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.
|
25
|
-
Requires-Dist: nucliadb-protos>=6.3.4.
|
26
|
-
Requires-Dist: nucliadb-models>=6.3.4.
|
27
|
-
Requires-Dist: nidx-protos>=6.3.4.
|
23
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.3.4.post3732
|
24
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.post3732
|
25
|
+
Requires-Dist: nucliadb-protos>=6.3.4.post3732
|
26
|
+
Requires-Dist: nucliadb-models>=6.3.4.post3732
|
27
|
+
Requires-Dist: nidx-protos>=6.3.4.post3732
|
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
|
@@ -22,12 +22,13 @@ migrations/0022_fix_paragraph_deletion_bug.py,sha256=-tH342VXF-8xwc_h3P1cYaUtTT1
|
|
22
22
|
migrations/0023_backfill_pg_catalog.py,sha256=gw22pU5cAtg2a7n7xVaVqT2itjAoDMNtzWwTllwqIvg,2993
|
23
23
|
migrations/0025_assign_models_to_kbs_v2.py,sha256=QC6nDF2Wyc6zQMqNoKzvz-3507UpDyJztlbIsvlwHss,4678
|
24
24
|
migrations/0026_fix_high_cardinality_content_types.py,sha256=BsbBkvZDzjRHQfoouZNNtHA1xMxTKm8wOVnp_WAS9j4,2322
|
25
|
-
migrations/0027_rollover_texts3.py,sha256=
|
25
|
+
migrations/0027_rollover_texts3.py,sha256=J7tRVr-OooLuZCFkhYquOPHFRMiHNQT1klT8r0d8a_8,2815
|
26
26
|
migrations/0028_extracted_vectors_reference.py,sha256=49DHCIlBpjofU8cYVHTdWv0EBIlnPTWV2WCezf0rJUo,2392
|
27
27
|
migrations/0029_backfill_field_status.py,sha256=QWF69n1da9lpRnbEpgbqPjSQ-Wfn6rMC7Enz6bBYGt4,5663
|
28
28
|
migrations/0030_label_deduplication.py,sha256=y14TxtCMi3-TBMz_eZoyyPDHNlZb29taJujlDuHumsA,2008
|
29
29
|
migrations/0031_languages_deduplication.py,sha256=o6va6lP3oTRT1uSzp5MIhHHBFbhCxSZ-oNlXXpiAdUo,2340
|
30
30
|
migrations/0032_remove_old_relations.py,sha256=ZaswhmRRsLgw6DVYVdT7cP-gdBf4X3PL9fklUXrmSD0,2318
|
31
|
+
migrations/0033_rollover_nidx_relation_2.py,sha256=LLhw7LknMVl1mu_mQlsijVUYDe7F87eZx2N8IyeZUK8,1244
|
31
32
|
migrations/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
32
33
|
migrations/pg/0001_bootstrap.py,sha256=Fsqkeof50m7fKiJN05kmNEMwiKDlOrAgcAS5sLLkutA,1256
|
33
34
|
migrations/pg/0002_catalog.py,sha256=Rsleecu351Ty19kYZgOpqX5G3MEAY8nMxCJrAeuS2Mw,1690
|
@@ -353,8 +354,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
353
354
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
354
355
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
355
356
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
356
|
-
nucliadb-6.3.4.
|
357
|
-
nucliadb-6.3.4.
|
358
|
-
nucliadb-6.3.4.
|
359
|
-
nucliadb-6.3.4.
|
360
|
-
nucliadb-6.3.4.
|
357
|
+
nucliadb-6.3.4.post3732.dist-info/METADATA,sha256=RR7gEyd40e4MNsR8vtWeJ7EcTRfLRPL22oE4FVF9LUI,4291
|
358
|
+
nucliadb-6.3.4.post3732.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
359
|
+
nucliadb-6.3.4.post3732.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
360
|
+
nucliadb-6.3.4.post3732.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
361
|
+
nucliadb-6.3.4.post3732.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|