nucliadb-utils 6.2.1.post3277__py3-none-any.whl → 6.2.1.post3296__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-utils might be problematic. Click here for more details.
- nucliadb_utils/const.py +0 -7
- nucliadb_utils/featureflagging.py +0 -28
- nucliadb_utils/transaction.py +1 -3
- {nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/RECORD +7 -7
- {nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/top_level.txt +0 -0
nucliadb_utils/const.py
CHANGED
@@ -71,13 +71,6 @@ class Streams:
|
|
71
71
|
|
72
72
|
|
73
73
|
class Features:
|
74
|
-
WAIT_FOR_INDEX = "nucliadb_wait_for_resource_index"
|
75
|
-
READ_REPLICA_SEARCHES = "nucliadb_read_replica_searches"
|
76
|
-
VERSIONED_PRIVATE_PREDICT = "nucliadb_versioned_private_predict"
|
77
|
-
REBALANCE_KB = "nucliadb_rebalance_kb"
|
78
74
|
SKIP_EXTERNAL_INDEX = "nucliadb_skip_external_index"
|
79
|
-
NATS_SYNC_ACK = "nucliadb_nats_sync_ack"
|
80
75
|
LOG_REQUEST_PAYLOADS = "nucliadb_log_request_payloads"
|
81
76
|
IGNORE_EXTRACTED_IN_SEARCH = "nucliadb_ignore_extracted_in_search"
|
82
|
-
NIDX_READS = "nucliadb_nidx_reads"
|
83
|
-
FIELD_STATUS = "nucliadb_field_status"
|
@@ -33,30 +33,10 @@ class Settings(pydantic_settings.BaseSettings):
|
|
33
33
|
|
34
34
|
DEFAULT_FLAG_DATA: dict[str, Any] = {
|
35
35
|
# These are just defaults to use for local dev and tests
|
36
|
-
const.Features.WAIT_FOR_INDEX: {
|
37
|
-
"rollout": 0,
|
38
|
-
"variants": {"environment": ["none"]},
|
39
|
-
},
|
40
|
-
const.Features.READ_REPLICA_SEARCHES: {
|
41
|
-
"rollout": 0,
|
42
|
-
"variants": {"environment": ["local"]},
|
43
|
-
},
|
44
|
-
const.Features.VERSIONED_PRIVATE_PREDICT: {
|
45
|
-
"rollout": 0,
|
46
|
-
"variants": {"environment": ["local"]},
|
47
|
-
},
|
48
|
-
const.Features.REBALANCE_KB: {
|
49
|
-
"rollout": 0,
|
50
|
-
"variants": {"environment": ["local"]},
|
51
|
-
},
|
52
36
|
const.Features.SKIP_EXTERNAL_INDEX: {
|
53
37
|
"rollout": 0,
|
54
38
|
"variants": {"environment": ["none"]},
|
55
39
|
},
|
56
|
-
const.Features.NATS_SYNC_ACK: {
|
57
|
-
"rollout": 0,
|
58
|
-
"variants": {"environment": ["local"]},
|
59
|
-
},
|
60
40
|
const.Features.LOG_REQUEST_PAYLOADS: {
|
61
41
|
"rollout": 0,
|
62
42
|
"variants": {"environment": ["none"]},
|
@@ -65,14 +45,6 @@ DEFAULT_FLAG_DATA: dict[str, Any] = {
|
|
65
45
|
"rollout": 0,
|
66
46
|
"variants": {"environment": ["local"]},
|
67
47
|
},
|
68
|
-
const.Features.NIDX_READS: {
|
69
|
-
"rollout": 0,
|
70
|
-
"variants": {"environment": ["local"]},
|
71
|
-
},
|
72
|
-
const.Features.FIELD_STATUS: {
|
73
|
-
"rollout": 0,
|
74
|
-
"variants": {"environment": ["local"]},
|
75
|
-
},
|
76
48
|
}
|
77
49
|
|
78
50
|
|
nucliadb_utils/transaction.py
CHANGED
@@ -39,7 +39,7 @@ from nucliadb_telemetry.jetstream import JetStreamContextTelemetry
|
|
39
39
|
from nucliadb_utils import const, logger
|
40
40
|
from nucliadb_utils.cache.pubsub import PubSubDriver
|
41
41
|
from nucliadb_utils.nats import get_traced_jetstream
|
42
|
-
from nucliadb_utils.utilities import get_pubsub
|
42
|
+
from nucliadb_utils.utilities import get_pubsub
|
43
43
|
|
44
44
|
|
45
45
|
class WaitFor:
|
@@ -128,8 +128,6 @@ class TransactionUtility:
|
|
128
128
|
)
|
129
129
|
|
130
130
|
def _get_notification_action_type(self):
|
131
|
-
if has_feature(const.Features.WAIT_FOR_INDEX):
|
132
|
-
return Notification.Action.INDEXED
|
133
131
|
return Notification.Action.COMMIT # currently do not handle ABORT!
|
134
132
|
|
135
133
|
async def wait_for_commited(
|
{nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post3296
|
4
4
|
Summary: NucliaDB util library
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License: AGPL
|
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
|
|
27
27
|
Requires-Dist: PyNaCl
|
28
28
|
Requires-Dist: pyjwt>=2.4.0
|
29
29
|
Requires-Dist: mrflagly>=0.2.9
|
30
|
-
Requires-Dist: nucliadb-protos>=6.2.1.
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.2.1.
|
30
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post3296
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.2.1.post3296
|
32
32
|
Provides-Extra: cache
|
33
33
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
34
34
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -1,10 +1,10 @@
|
|
1
1
|
nucliadb_utils/__init__.py,sha256=EvBCH1iTODe-AgXm48aj4kVUt_Std3PeL8QnwimR5wI,895
|
2
2
|
nucliadb_utils/asyncio_utils.py,sha256=h8Y-xpcFFRgNzaiIW0eidz7griAQa7ggbNk34-tAt2c,2888
|
3
3
|
nucliadb_utils/authentication.py,sha256=5_b323v2ylJaJvM_0coeSQEtnD-p9IGD-6CPA6IXhik,6471
|
4
|
-
nucliadb_utils/const.py,sha256=
|
4
|
+
nucliadb_utils/const.py,sha256=fA8NLObuow6ZyXHEDzl3kordTVyhNWHOdtvzK0oUaJU,2174
|
5
5
|
nucliadb_utils/debug.py,sha256=Q56Nx9Dp7V2ae3CU2H0ztaZcHTJXdlflPLKLeOPZ170,2436
|
6
6
|
nucliadb_utils/exceptions.py,sha256=y_3wk77WLVUtdo-5FtbBsdSkCtK_DsJkdWb5BoPn3qo,1094
|
7
|
-
nucliadb_utils/featureflagging.py,sha256=
|
7
|
+
nucliadb_utils/featureflagging.py,sha256=YxDiXzWuiDlHtqgeTVeyakmbAdzBePzJpgJv53ELbmI,2259
|
8
8
|
nucliadb_utils/grpc.py,sha256=apu0uePnkGHCAT7GRQ9YZfRYyFj26kJ440i8jitbM3U,3314
|
9
9
|
nucliadb_utils/helpers.py,sha256=nPw8yod3hP-pxq80VF8QC36s7ygSg0dBUdfI-LatvCs,1600
|
10
10
|
nucliadb_utils/indexing.py,sha256=Luaqcar3CySpdYOFp6Q9Fyr8ZYwhYhaKRHQ_VGL78f8,2318
|
@@ -15,7 +15,7 @@ nucliadb_utils/run.py,sha256=Es0_Bu5Yc-LWczvwL6gzWqSwC85RjDCk-0oFQAJi9g4,1827
|
|
15
15
|
nucliadb_utils/settings.py,sha256=RnGhEUvwv6faNqALiqDCivvzNOyyXVBflYh_37uNkow,8193
|
16
16
|
nucliadb_utils/signals.py,sha256=JRNv2y9zLtBjOANBf7krGfDGfOc9qcoXZ6N1nKWS2FE,2674
|
17
17
|
nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
|
18
|
-
nucliadb_utils/transaction.py,sha256=
|
18
|
+
nucliadb_utils/transaction.py,sha256=YYnTpxCDs56lo0tS6ErABjk9WjDuieUc4f7r63Q_OP8,7864
|
19
19
|
nucliadb_utils/utilities.py,sha256=_5pNsXBknULGrTvV4hgIjsOJ0sSbFq4ygseH89C1gdk,16128
|
20
20
|
nucliadb_utils/aiopynecone/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
21
21
|
nucliadb_utils/aiopynecone/client.py,sha256=MPyHnDXwhukJr7U3CJh7BpsekfSuOkyM4g5b9LLtzc8,22941
|
@@ -59,7 +59,7 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
59
59
|
nucliadb_utils/tests/local.py,sha256=fXIBasrvdaFJM-sw2wk1_oiFzBcm9O10iCyC-OiXwY8,1914
|
60
60
|
nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
|
61
61
|
nucliadb_utils/tests/s3.py,sha256=pl-RJFjA4MH6iXkqhsh5g8gDuEhrYu1nPZ-laxlrMlE,3704
|
62
|
-
nucliadb_utils-6.2.1.
|
63
|
-
nucliadb_utils-6.2.1.
|
64
|
-
nucliadb_utils-6.2.1.
|
65
|
-
nucliadb_utils-6.2.1.
|
62
|
+
nucliadb_utils-6.2.1.post3296.dist-info/METADATA,sha256=HRzYp2INmvkXZ1F1S0_xomDk_rgFbn247VcRt1TwtHs,2209
|
63
|
+
nucliadb_utils-6.2.1.post3296.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
64
|
+
nucliadb_utils-6.2.1.post3296.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
65
|
+
nucliadb_utils-6.2.1.post3296.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-6.2.1.post3277.dist-info → nucliadb_utils-6.2.1.post3296.dist-info}/top_level.txt
RENAMED
File without changes
|