nucliadb 6.2.1.post3072__py3-none-any.whl → 6.2.1.post3087__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/writer/api/v1/services.py +8 -0
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/METADATA +5 -5
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/RECORD +7 -7
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/WHEEL +0 -0
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/top_level.txt +0 -0
- {nucliadb-6.2.1.post3072.dist-info → nucliadb-6.2.1.post3087.dist-info}/zip-safe +0 -0
@@ -174,7 +174,15 @@ async def delete_entities(request: Request, kbid: str, group: str):
|
|
174
174
|
@requires(NucliaDBRoles.WRITER)
|
175
175
|
@version(1)
|
176
176
|
async def set_labelset_endpoint(request: Request, kbid: str, labelset: str, item: LabelSet):
|
177
|
+
if item.title is None:
|
178
|
+
item.title = labelset
|
179
|
+
|
177
180
|
try:
|
181
|
+
labelsets = await datamanagers.atomic.labelset.get_all(kbid=kbid)
|
182
|
+
labelset_titles = [ls.title.lower() for (k, ls) in labelsets.labelset.items() if k != labelset]
|
183
|
+
if item.title.lower() in labelset_titles:
|
184
|
+
raise HTTPException(status_code=422, detail="Duplicated labelset titles are not allowed")
|
185
|
+
|
178
186
|
await set_labelset(kbid, labelset, item)
|
179
187
|
except KnowledgeBoxNotFound:
|
180
188
|
raise HTTPException(status_code=404, detail="Knowledge Box does not exist")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post3087
|
4
4
|
Home-page: https://docs.nuclia.dev/docs/management/nucliadb/intro
|
5
5
|
Author: NucliaDB Community
|
6
6
|
Author-email: nucliadb@nuclia.com
|
@@ -22,10 +22,10 @@ Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3 :: Only
|
23
23
|
Requires-Python: >=3.9, <4
|
24
24
|
Description-Content-Type: text/markdown
|
25
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.2.1.
|
26
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.
|
27
|
-
Requires-Dist: nucliadb-protos>=6.2.1.
|
28
|
-
Requires-Dist: nucliadb-models>=6.2.1.
|
25
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post3087
|
26
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post3087
|
27
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post3087
|
28
|
+
Requires-Dist: nucliadb-models>=6.2.1.post3087
|
29
29
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
30
30
|
Requires-Dist: nuclia-models>=0.24.2
|
31
31
|
Requires-Dist: uvicorn
|
@@ -310,7 +310,7 @@ nucliadb/writer/api/v1/knowledgebox.py,sha256=MLeIuym4jPrJgfy1NTcN9CpUGwuBiqDHMc
|
|
310
310
|
nucliadb/writer/api/v1/learning_config.py,sha256=GaYaagjBrVG9ZxrWQyVQfqGMQV3tAJjqJ5CStaKhktU,2058
|
311
311
|
nucliadb/writer/api/v1/resource.py,sha256=A8fAHlN5XFsg6XFYKhfWJS8czgNH6yXr-PsnUqz2WUE,18757
|
312
312
|
nucliadb/writer/api/v1/router.py,sha256=RjuoWLpZer6Kl2BW_wznpNo6XL3BOpdTGqXZCn3QrrQ,1034
|
313
|
-
nucliadb/writer/api/v1/services.py,sha256=
|
313
|
+
nucliadb/writer/api/v1/services.py,sha256=THnBnRxiHrEZPpBTL-E-vplEUfcD-fZpuslKRonM6xs,10286
|
314
314
|
nucliadb/writer/api/v1/slug.py,sha256=xlVBDBpRi9bNulpBHZwhyftVvulfE0zFm1XZIWl-AKY,2389
|
315
315
|
nucliadb/writer/api/v1/transaction.py,sha256=d2Vbgnkk_-FLGSTt3vfldwiJIUf0XoyD0wP1jQNz_DY,2430
|
316
316
|
nucliadb/writer/api/v1/upload.py,sha256=VOeqNTrZx1_z8iaKjM7p8fVlVcIYMtnQNK1dm72ct6k,33161
|
@@ -329,9 +329,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
329
329
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
330
330
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
331
331
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
332
|
-
nucliadb-6.2.1.
|
333
|
-
nucliadb-6.2.1.
|
334
|
-
nucliadb-6.2.1.
|
335
|
-
nucliadb-6.2.1.
|
336
|
-
nucliadb-6.2.1.
|
337
|
-
nucliadb-6.2.1.
|
332
|
+
nucliadb-6.2.1.post3087.dist-info/METADATA,sha256=ATRQKTKtuCTKpwOtBrUBXJ-c5bmuSKKDlLl3jtV5f5o,4603
|
333
|
+
nucliadb-6.2.1.post3087.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
334
|
+
nucliadb-6.2.1.post3087.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
335
|
+
nucliadb-6.2.1.post3087.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
336
|
+
nucliadb-6.2.1.post3087.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
337
|
+
nucliadb-6.2.1.post3087.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|