1
0
mirror of https://github.com/etesync/server synced 2024-11-23 01:08:08 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
James
453869d71d Remove port from host_from_request check
This strips the port from the client requests, comparing only the hostnames or IP addresses, and should alleviate nonstandard port and initial testing issues.  Tested on Linux, Mac, and Android clients.  Closes #105.

Code is from this comment:

https://github.com/etesync/server/issues/66#issuecomment-731215345
2021-09-20 15:13:25 +03:00
Tom Hacohen
14b3cfca55 Handle stoken being the empty string.
For whatever reason some users were getting this which was causing this code
to fail.
2021-02-01 18:40:14 +02:00
Tom Hacohen
b33a3c882e Subscriptions: allow subscribing without setting an stoken. 2021-01-28 18:10:12 +02:00
Tom Hacohen
233aeab98b Support login and invitations using email rather than just username. 2021-01-27 09:35:36 +02:00
Tom Hacohen
240469342b Move reporting item changes to a background task. 2021-01-12 11:57:43 +02:00
Tom Hacohen
61bd82f1e3 Subscriptions: stream missing items if user passed an old stoken. 2021-01-11 22:15:12 +02:00
Tom Hacohen
f52facad1c Subscriptions: implement live subscriptions for collection items 2021-01-11 22:15:12 +02:00
Tom Hacohen
9f0430a6da Improve types. 2021-01-04 14:23:30 +02:00
Tom Hacohen
2e21fe4994 Django db cleanup: explicitly add it to dependencies.
We can't really add it manually, because some of the deps are auto included as
parameters. These were not being decorated which in turn meeant issues.
2020-12-31 10:03:16 +02:00
Tom Hacohen
6738c2cf20 Remove unused variable. 2020-12-30 13:55:05 +02:00
Tom Hacohen
64be7f10bd Remove all of the needless async decorators.
The code uses the django ORM which is sync, and fastapi handles sync paths
just fine. So having all of this extra code for handling async was unnecessary.
2020-12-30 10:17:01 +02:00
Tom Hacohen
a7fdb4a108 More typing fixes. 2020-12-29 21:10:03 +02:00
Tom Hacohen
709bc6c1fc Improve typing information. 2020-12-29 18:17:28 +02:00
Tom Hacohen
332f7e2332 Fix Python 3.7 compatibility
Both cached_property and Literal were introduced in Python 3.8 so they
can't be used.
2020-12-29 17:55:55 +02:00
Tom Hacohen
dbdff06e68 Move all the routers under their own dir. 2020-12-29 15:42:41 +02:00