kinto 23.0.3__py3-none-any.whl → 23.1.0__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 kinto might be problematic. Click here for more details.
- kinto/core/cache/__init__.py +35 -0
- kinto/core/cache/memcached.py +2 -0
- kinto/core/cache/memory.py +6 -1
- kinto/core/cache/postgresql/__init__.py +3 -0
- kinto/core/initialization.py +11 -3
- kinto/plugins/admin/VERSION +1 -1
- kinto/plugins/admin/build/VERSION +1 -1
- kinto/plugins/admin/build/assets/{index-DnaKeFLX.css → index-B_zMxEpZ.css} +1 -1
- kinto/plugins/admin/build/assets/index-DBxDgrMX.js +154 -0
- kinto/plugins/admin/build/index.html +2 -2
- kinto/plugins/history/__init__.py +24 -0
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/METADATA +2 -1
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/RECORD +17 -17
- kinto/plugins/admin/build/assets/index-Dt2_17Gx.js +0 -145
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/WHEEL +0 -0
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/entry_points.txt +0 -0
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/licenses/LICENSE +0 -0
- {kinto-23.0.3.dist-info → kinto-23.1.0.dist-info}/top_level.txt +0 -0
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>Kinto Administration</title>
|
|
7
7
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
8
8
|
<link rel="icon" type="image/x-icon" href="../images/favicon.png">
|
|
9
|
-
<script type="module" crossorigin src="/v1/admin/assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/v1/admin/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/v1/admin/assets/index-DBxDgrMX.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/v1/admin/assets/index-B_zMxEpZ.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<body>
|
|
@@ -7,6 +7,28 @@ from kinto.core.events import ResourceChanged
|
|
|
7
7
|
from .listener import on_resource_changed
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
def uri_to_dict(uri):
|
|
11
|
+
"""
|
|
12
|
+
Convert a resource URI to a dictionary with its components.
|
|
13
|
+
We don't use `kinto.core.view_lookup_registry()` here because it requires
|
|
14
|
+
a request context or an initialized registry, which is not available at
|
|
15
|
+
this point.
|
|
16
|
+
"""
|
|
17
|
+
parts = uri.split("/")
|
|
18
|
+
if len(parts) == 3:
|
|
19
|
+
_, _buckets, bid = parts
|
|
20
|
+
return {"bucket": bid}
|
|
21
|
+
if len(parts) == 5:
|
|
22
|
+
_, _buckets, bid, resource, rid = parts
|
|
23
|
+
if resource == "collections":
|
|
24
|
+
return {"bucket": bid, "collection": rid}
|
|
25
|
+
return {"bucket": bid, "group": rid}
|
|
26
|
+
if len(parts) == 7:
|
|
27
|
+
_, _buckets, bid, _collections, cid, _records, rid = parts
|
|
28
|
+
return {"bucket": bid, "collection": cid, "record": rid}
|
|
29
|
+
raise ValueError(f"Invalid URI: {uri}") # pragma: no cover
|
|
30
|
+
|
|
31
|
+
|
|
10
32
|
def includeme(config):
|
|
11
33
|
settings = config.get_settings()
|
|
12
34
|
exposed_settings = {}
|
|
@@ -14,6 +36,8 @@ def includeme(config):
|
|
|
14
36
|
exposed_settings["auto_trim_max_count"] = trim_history_max
|
|
15
37
|
if trim_user_ids := aslist(settings.get("history.auto_trim_user_ids", "")):
|
|
16
38
|
exposed_settings["auto_trim_user_ids"] = trim_user_ids
|
|
39
|
+
if excluded_resources := aslist(settings.get("history.exclude_resources", "")):
|
|
40
|
+
exposed_settings["excluded_resources"] = [uri_to_dict(uri) for uri in excluded_resources]
|
|
17
41
|
|
|
18
42
|
config.add_api_capability(
|
|
19
43
|
"history",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kinto
|
|
3
|
-
Version: 23.0
|
|
3
|
+
Version: 23.1.0
|
|
4
4
|
Summary: Kinto Web Service - Store, Sync, Share, and Self-Host.
|
|
5
5
|
Author-email: Mozilla Services <developers@kinto-storage.org>
|
|
6
6
|
License: Copyright 2012 - Mozilla Foundation
|
|
@@ -229,3 +229,4 @@ Contributors
|
|
|
229
229
|
* Dan Milgram <danm@intervivo.com>
|
|
230
230
|
* Dex Devlon <@bxff>
|
|
231
231
|
* Varun Koranne <@varun-dhruv>
|
|
232
|
+
* Robin Sharma <robinrythm123@gmail.com>
|
|
@@ -12,7 +12,7 @@ kinto/core/authorization.py,sha256=GywY25KEzuSSAI709dFHDfdLnKxy3SLEYGwW5FkQ7Qc,1
|
|
|
12
12
|
kinto/core/decorators.py,sha256=3SAPWXlyPNUSICZ9mz04bcN-UdbnDuFOtU0bQHHzLis,2178
|
|
13
13
|
kinto/core/errors.py,sha256=JXZjkPYjjC0I6x02d2VJRGeaQ2yZYS2zm5o7_ljfyes,8946
|
|
14
14
|
kinto/core/events.py,sha256=SYpXgKMtVjiD9fwYJA2Omdom9yA3nBqi9btdvU1I_nc,10345
|
|
15
|
-
kinto/core/initialization.py,sha256=
|
|
15
|
+
kinto/core/initialization.py,sha256=0Y_2njvSrlNlwm_D7Nsa8A_PKy2CA4PY0d5k-vzADxU,26633
|
|
16
16
|
kinto/core/metrics.py,sha256=wlTThw_pSESrgwJfGdVBcM3r0b09gleZV4aSiu5pWq8,2768
|
|
17
17
|
kinto/core/openapi.py,sha256=92sZviff4NCxN0jMnu5lPUnF5iQbrKMGy7Cegf-VAME,3876
|
|
18
18
|
kinto/core/schema.py,sha256=d5L5TQynRYJPkZ8Mu2X7F72xEh6SKDbrHK1CNTdOf2E,3646
|
|
@@ -20,11 +20,11 @@ kinto/core/scripts.py,sha256=02SXVjo579W82AsDF8dyVCRxYVcrMFkjjaNVIgLChh0,1412
|
|
|
20
20
|
kinto/core/statsd.py,sha256=2f4s2opiHVdrA02ZlBa5pxIHaEjPuG8tdVLsmdII27s,64
|
|
21
21
|
kinto/core/testing.py,sha256=kZ-75EiiZwTNDBpHZyKBBHute6jEmUwXd7nRMK9kwr4,5908
|
|
22
22
|
kinto/core/utils.py,sha256=xN5xCxU8qhaD9lBwkG34R4FzvZxylSxelVQI4ADHJa8,17070
|
|
23
|
-
kinto/core/cache/__init__.py,sha256=
|
|
24
|
-
kinto/core/cache/memcached.py,sha256=
|
|
25
|
-
kinto/core/cache/memory.py,sha256=
|
|
23
|
+
kinto/core/cache/__init__.py,sha256=nrKNKhOUlzaf0TClgXNCgwBRg9xtfRWIK17Tzzd9jq8,3848
|
|
24
|
+
kinto/core/cache/memcached.py,sha256=N_H87fLrvjynlefX3wCOxv2WACJwi2fKBIaE0ivOAPA,3001
|
|
25
|
+
kinto/core/cache/memory.py,sha256=AV9Nc8R7w00Zfyk7f8HY7jGgRfBseuXnojheTuVDL3Y,2907
|
|
26
26
|
kinto/core/cache/testing.py,sha256=KVNz1tVYv_A33HF66SObM1WTgOx1UY47MuwPsaaQRag,6980
|
|
27
|
-
kinto/core/cache/postgresql/__init__.py,sha256=
|
|
27
|
+
kinto/core/cache/postgresql/__init__.py,sha256=q6lMQjnvHnOPpKF86tZQYoYvT54_TYCg0ewpNCs7B6Y,6145
|
|
28
28
|
kinto/core/cache/postgresql/schema.sql,sha256=a-6lbhqzlNMcig7DCGQ_ULP-Z5nzhNWrZWCpaHTiJPw,503
|
|
29
29
|
kinto/core/cornice/__init__.py,sha256=P07QaR_5qIXuFxAXciJZYlUlQSH5bYD2LNsv5v9E_tY,3685
|
|
30
30
|
kinto/core/cornice/cors.py,sha256=nA61VsAamFovkpk5aYVoSWASLnXWVl6XJdMw17IDIKA,5159
|
|
@@ -108,16 +108,16 @@ kinto/plugins/accounts/scripts.py,sha256=_LNkSpFprOMGHFKkRmmOqK31uoQW28yttPQztmf
|
|
|
108
108
|
kinto/plugins/accounts/utils.py,sha256=xGtWwBPKVEwkbJbtJ_SUFgTJpwQzreoJG9XY86HPj7M,358
|
|
109
109
|
kinto/plugins/accounts/views.py,sha256=NO2nZCS1v0dN390Hxhe55Bsi4IM-NH9jEStkiKH2AEU,5221
|
|
110
110
|
kinto/plugins/admin/README.md,sha256=3a9inoO2IHH5aST3xZp_km3ddupHZqadWrQjOQifBRk,105
|
|
111
|
-
kinto/plugins/admin/VERSION,sha256=
|
|
111
|
+
kinto/plugins/admin/VERSION,sha256=HlMCADaRtv3HvdwHNu73zjrchw6Xr9_PtJfd4qeO1UU,6
|
|
112
112
|
kinto/plugins/admin/__init__.py,sha256=057R3q_S4CFiUuqwMIFkyu4prMBnUVc1eo8OUAPeJBs,1327
|
|
113
113
|
kinto/plugins/admin/views.py,sha256=fJ4chOIYhiQRe8lRze3qFhYIZfoqCqNlDvJIAd-ZBR8,1333
|
|
114
|
-
kinto/plugins/admin/build/VERSION,sha256=
|
|
115
|
-
kinto/plugins/admin/build/index.html,sha256=
|
|
114
|
+
kinto/plugins/admin/build/VERSION,sha256=J0RzX-4u4jfin1kviKtmncjUePyjHm2kyvmkobOrt_E,5
|
|
115
|
+
kinto/plugins/admin/build/index.html,sha256=U6XplY0-GRSnFbASv8tMG98YPqUD32l7iywjtfRKenU,467
|
|
116
116
|
kinto/plugins/admin/build/assets/asn1-EdZsLKOL.js,sha256=rgO6M_APbSRME0yY3rddue8niU7UJmG2uWz4l1YeG6s,3981
|
|
117
117
|
kinto/plugins/admin/build/assets/clojure-BMjYHr_A.js,sha256=SYpgEG0C5dkSQgMtAejALIQFzA3S0InWn1XquOeNGiA,10815
|
|
118
118
|
kinto/plugins/admin/build/assets/css-BnMrqG3P.js,sha256=qj5HvX1-byua7Xs0K31qoFn_bncMhtZMsOr5e0A-yYo,27132
|
|
119
|
-
kinto/plugins/admin/build/assets/index-
|
|
120
|
-
kinto/plugins/admin/build/assets/index-
|
|
119
|
+
kinto/plugins/admin/build/assets/index-B_zMxEpZ.css,sha256=dtqXOd4QVUAPAQjLs2fvFYnNDlaou7IMKQUlV8vwKes,172286
|
|
120
|
+
kinto/plugins/admin/build/assets/index-DBxDgrMX.js,sha256=gMqJILfUxwTjIa0ltikd2qGuS7gWtFnpmXF2s6udOfo,2731130
|
|
121
121
|
kinto/plugins/admin/build/assets/javascript-qCveANmP.js,sha256=ol336oG7yGQxC9YIvojoE-dqx7wd3lLp0Ikn2rV4F5g,17080
|
|
122
122
|
kinto/plugins/admin/build/assets/logo-VBRiKSPX.png,sha256=4LXIgVZbcdbMun8bTlCFgnBik7uIkIRILVPFYrTUGgg,5578
|
|
123
123
|
kinto/plugins/admin/build/assets/mllike-CXdrOF99.js,sha256=C_YMaIP-ED2BN1nxtpuqRq-LXcC1AqrkksJHg4pdh4Q,4788
|
|
@@ -127,7 +127,7 @@ kinto/plugins/admin/build/assets/sql-D0XecflT.js,sha256=3hecsZJ0WlDxeFA_1lrl_ySI
|
|
|
127
127
|
kinto/plugins/admin/build/assets/ttcn-cfg-B9xdYoR4.js,sha256=jTZ_XHKOChJZEt-FzJbGHhvSYW42F1NccHg0lOY2FlM,4050
|
|
128
128
|
kinto/plugins/admin/public/help.html,sha256=1hol7z5Sv0Xn3mYyEfPQWFOsrR24htlKhmnGA3rH8fs,958
|
|
129
129
|
kinto/plugins/default_bucket/__init__.py,sha256=7TmBzFgW0gmYsetXr6Kqt9317XZ3PiB9gyCr-IBfmGg,7276
|
|
130
|
-
kinto/plugins/history/__init__.py,sha256=
|
|
130
|
+
kinto/plugins/history/__init__.py,sha256=sEJ8ljE3AMqtJ74onk6tBkbRmK0bJUKWFWTy7zXM9Cs,2443
|
|
131
131
|
kinto/plugins/history/listener.py,sha256=ABPRduTnkwH6oMzRyrQlF3AZoVt7brqwKVpA8ynY0Sw,7962
|
|
132
132
|
kinto/plugins/history/views.py,sha256=NoBP-S7epeH5TLZZbIqfBmwMA2KaWmxP7lqPAS11BTU,2293
|
|
133
133
|
kinto/plugins/openid/__init__.py,sha256=1Iv5SCa6vwEvoJkmGd45-TYm_mxz2okFj6u2VTNuVrk,4863
|
|
@@ -141,9 +141,9 @@ kinto/views/contribute.py,sha256=PJoIMLj9_IszSjgZkaCd_TUjekDgNqjpmVTmRN9ztaA,983
|
|
|
141
141
|
kinto/views/groups.py,sha256=jOq5fX0-4lwZE8k1q5HME2tU7x9052rtBPF7YqcJ-Qg,3181
|
|
142
142
|
kinto/views/permissions.py,sha256=F0_eKx201WyLonXJ5vLdGKa9RcFKjvAihrEEhU1JuLw,9069
|
|
143
143
|
kinto/views/records.py,sha256=lYfACW2L8qcQoyYBD5IX-fTPjFWmGp7GjHq_U4InlyE,5037
|
|
144
|
-
kinto-23.0.
|
|
145
|
-
kinto-23.0.
|
|
146
|
-
kinto-23.0.
|
|
147
|
-
kinto-23.0.
|
|
148
|
-
kinto-23.0.
|
|
149
|
-
kinto-23.0.
|
|
144
|
+
kinto-23.1.0.dist-info/licenses/LICENSE,sha256=oNEIMTuTJzppR5ZEyi86yvvtSagveMYXTYFn56zF0Uk,561
|
|
145
|
+
kinto-23.1.0.dist-info/METADATA,sha256=uHajajj6uRl-D8O-uTSw-wwGhAEvgWqFbJ2PiJJ8JTY,8809
|
|
146
|
+
kinto-23.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
147
|
+
kinto-23.1.0.dist-info/entry_points.txt,sha256=3KlqBWPKY81mrCe_oX0I5s1cRO7Q53nCLbnVr5P9LH4,85
|
|
148
|
+
kinto-23.1.0.dist-info/top_level.txt,sha256=EG_YmbZL6FAug9VwopG7JtF9SvH_r0DEnFp-3twPPys,6
|
|
149
|
+
kinto-23.1.0.dist-info/RECORD,,
|