howler-api 2.12.0.dev298__py3-none-any.whl → 2.12.0.dev307__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.
- howler/odm/models/pivot.py +1 -10
- howler/odm/random_data.py +7 -3
- {howler_api-2.12.0.dev298.dist-info → howler_api-2.12.0.dev307.dist-info}/METADATA +1 -1
- {howler_api-2.12.0.dev298.dist-info → howler_api-2.12.0.dev307.dist-info}/RECORD +6 -6
- {howler_api-2.12.0.dev298.dist-info → howler_api-2.12.0.dev307.dist-info}/WHEEL +0 -0
- {howler_api-2.12.0.dev298.dist-info → howler_api-2.12.0.dev307.dist-info}/entry_points.txt +0 -0
howler/odm/models/pivot.py
CHANGED
|
@@ -2,18 +2,9 @@
|
|
|
2
2
|
from typing import Optional
|
|
3
3
|
|
|
4
4
|
from howler import odm
|
|
5
|
-
from howler.odm.howler_enum import HowlerEnum
|
|
6
5
|
from howler.odm.models.localized_label import LocalizedLabel
|
|
7
6
|
|
|
8
7
|
|
|
9
|
-
class Formats(str, HowlerEnum):
|
|
10
|
-
BOREALIS = "borealis"
|
|
11
|
-
LINK = "link"
|
|
12
|
-
|
|
13
|
-
def __str__(self) -> str:
|
|
14
|
-
return self.value
|
|
15
|
-
|
|
16
|
-
|
|
17
8
|
@odm.model(
|
|
18
9
|
index=True,
|
|
19
10
|
store=True,
|
|
@@ -41,7 +32,7 @@ class Pivot(odm.Model):
|
|
|
41
32
|
)
|
|
42
33
|
label: LocalizedLabel = odm.Compound(LocalizedLabel, description="Labels for the pivot in the UI.")
|
|
43
34
|
value: str = odm.Keyword(description="The link/borealis id to pivot on.")
|
|
44
|
-
format: str = odm.
|
|
35
|
+
format: str = odm.Keyword(description="The format of the pivot.")
|
|
45
36
|
mappings: list[Mapping] = odm.List(
|
|
46
37
|
odm.Compound(Mapping),
|
|
47
38
|
default=[],
|
howler/odm/random_data.py
CHANGED
|
@@ -820,15 +820,15 @@ def wipe_dossiers(ds: HowlerDatastore):
|
|
|
820
820
|
|
|
821
821
|
def setup_hits(ds):
|
|
822
822
|
"Set up hits index"
|
|
823
|
-
os.environ["ELASTIC_HIT_SHARDS"] = "
|
|
824
|
-
os.environ["ELASTIC_HIT_REPLICAS"] = "
|
|
823
|
+
os.environ["ELASTIC_HIT_SHARDS"] = "1"
|
|
824
|
+
os.environ["ELASTIC_HIT_REPLICAS"] = "0"
|
|
825
825
|
ds.hit.fix_shards()
|
|
826
826
|
ds.hit.fix_replicas()
|
|
827
827
|
|
|
828
828
|
|
|
829
829
|
def setup_users(ds):
|
|
830
830
|
"Set up users index"
|
|
831
|
-
os.environ["ELASTIC_USER_REPLICAS"] = "
|
|
831
|
+
os.environ["ELASTIC_USER_REPLICAS"] = "12"
|
|
832
832
|
os.environ["ELASTIC_USER_AVATAR_REPLICAS"] = "1"
|
|
833
833
|
ds.user.fix_replicas()
|
|
834
834
|
ds.user_avatar.fix_replicas()
|
|
@@ -886,3 +886,7 @@ if __name__ == "__main__":
|
|
|
886
886
|
create_fn(ds)
|
|
887
887
|
|
|
888
888
|
logger.info("Done.")
|
|
889
|
+
|
|
890
|
+
logger.info("Done.")
|
|
891
|
+
|
|
892
|
+
logger.info("Done.")
|
|
@@ -143,11 +143,11 @@ howler/odm/models/howler_data.py,sha256=3bzKQ_vSP_rK20S_U4PkXzsmBL1uqSaIOHZmoPuR
|
|
|
143
143
|
howler/odm/models/lead.py,sha256=QDzX0IdSWRZgBBNtHAyXMaOJa7bP41CDYQWN_vadkV4,1107
|
|
144
144
|
howler/odm/models/localized_label.py,sha256=G7gfQ1cngiI4KprqldHWE1KHkAgK4AG_JsfHxVRdsRs,361
|
|
145
145
|
howler/odm/models/overview.py,sha256=kvZcMYPDlkJEGa0L1jq9pG0RFjLOVudC64-2GTWVu2w,684
|
|
146
|
-
howler/odm/models/pivot.py,sha256=
|
|
146
|
+
howler/odm/models/pivot.py,sha256=VLZl5DHnLfmCM2ZU5sAye0qu18toCaFcYLYraXct2GM,1398
|
|
147
147
|
howler/odm/models/template.py,sha256=-Tqq_36qD_3nQ4jv13OPeH_EyyERKhc55wT03CU-Kbk,979
|
|
148
148
|
howler/odm/models/user.py,sha256=3V7cLxxHJwWfTsEdZ7-QZT_-PQL7H_RJ3buQ8AraGzQ,3052
|
|
149
149
|
howler/odm/models/view.py,sha256=kmaJOXhR4prki5o0gBirs1dqGcQK3b9ATysL_kNoku0,1308
|
|
150
|
-
howler/odm/random_data.py,sha256=
|
|
150
|
+
howler/odm/random_data.py,sha256=Lo_El5q817A8FT-5aglncwmEsGY6jpaqNL8c-eaSubY,28494
|
|
151
151
|
howler/odm/randomizer.py,sha256=-AG-C-FZEsZQp1bQGWLNIpx6NN6r1DcWtk6nq2Ktfwg,23595
|
|
152
152
|
howler/patched.py,sha256=Br4BGU5raaqjSMDLD7ogb5A8Yn0dzecouh6uWVV2jlQ,77
|
|
153
153
|
howler/plugins/__init__.py,sha256=P5P-t4KgIInOzp4NmIturNIhUbb3jPO81n55Q_b_gM0,841
|
|
@@ -194,7 +194,7 @@ howler/utils/path.py,sha256=DfOU4i4zSs4wchHoE8iE7aWVLkTxiC_JRGepF2hBYBk,690
|
|
|
194
194
|
howler/utils/socket_utils.py,sha256=nz1SklC9xBHUSfHyTJjpq3mbozX1GDf01WzdGxfaUII,2212
|
|
195
195
|
howler/utils/str_utils.py,sha256=HE8Hqh2HlOLaj16w0H9zKOyDJLp-f1LQ50y_WeGZaEk,8389
|
|
196
196
|
howler/utils/uid.py,sha256=p9dsqyvZ-lpiAuzZWCPCeEM99kdk0Ly9czf04HNdSuw,1341
|
|
197
|
-
howler_api-2.12.0.
|
|
198
|
-
howler_api-2.12.0.
|
|
199
|
-
howler_api-2.12.0.
|
|
200
|
-
howler_api-2.12.0.
|
|
197
|
+
howler_api-2.12.0.dev307.dist-info/METADATA,sha256=68KmFoejzMhFBdwAm17XgUi3j3Kz4LwnPL0-V1RU-EY,2815
|
|
198
|
+
howler_api-2.12.0.dev307.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
199
|
+
howler_api-2.12.0.dev307.dist-info/entry_points.txt,sha256=Lu9SBGvwe0wczJHmc-RudC24lmQk7tv3ZBXon9RIihg,259
|
|
200
|
+
howler_api-2.12.0.dev307.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|