Tom Hacohen
d7075c0169
Mark optional field as optional.
2024-06-08 20:49:13 -04:00
Tom Hacohen
a27ce2f4d0
Also handle 422 as msgpack.
2024-06-08 20:41:01 -04:00
Tom Hacohen
138d99dd7f
Update code to adjust to most recent python/fastapi.
2024-06-08 20:27:33 -04:00
Tom Hacohen
0be14a7b0e
Fixes for fastapi.
2024-06-08 20:17:02 -04:00
Tom Hacohen
57e676baa1
Adjust to fastapi changes.
2024-06-08 19:52:10 -04:00
Tom Hacohen
b9f2cea951
more
2024-06-08 19:29:56 -04:00
Tom Hacohen
0d9c9f153d
Type fix.
2024-06-08 19:29:56 -04:00
Tom Hacohen
fb9cc701d0
Adjust pydantic code to v2.
2024-06-08 18:10:34 -04:00
Tom Hacohen
0cdab19308
Fix rust complaints.
2024-06-08 18:04:59 -04:00
Tom Hacohen
79d28586c5
Run ruff format.
2024-06-08 17:51:44 -04:00
Tom Hacohen
a54afd5210
Optimize stoken-using functions to only account for current revisions.
...
No need to account for revisions that are not current when calculating stokens
because those, by definition, are not the latest ones, and therefore won't have
the most recent stokens.
This becomes a problem when collections have many associated revisions.
2023-08-15 20:21:23 -04:00
Alejandro
4293acb3a3
fix: Python files
2023-07-24 22:06:22 -04:00
Tom Hacohen
8c6d04e8d3
Replace aioredis with redis-py
...
aioredis has been merged into redis-py and will no longer be maintained
as a separate project.
2022-09-04 19:57:27 +02:00
Tom Hacohen
2f1f95fea9
Optimize how we fetch the latest (current) revision
...
The way were were doing it was implicitly sorting the query items and it
was causing millions of items to be sorted (even though the result should
only have one) making it slow.
By switching away from `get()` and `first()` we are telling django to
not try to sort.
2022-06-19 22:25:49 +03:00
Xiretza
ada5181a7e
fix: move django_etebase module from toplevel to under etebase_server
...
This is in preparation for creating a python package, which should only
occupy the "etebase_server" name in the global module namespace.
2022-05-09 17:41:16 +02:00
Xiretza
9d6e0ae60a
fix: move myauth module from toplevel to under etebase_server
...
This is in preparation for creating a python package, which should only
occupy the "etebase_server" name in the global module namespace.
2022-05-09 17:41:16 +02:00
Xiretza
163f7766f1
fix: move etebase_fastapi module from toplevel to under etebase_server
...
This is in preparation for creating a python package, which should only
occupy the "etebase_server" name in the global module namespace.
2022-05-09 17:41:16 +02:00