15 Commits (006c5fc2425f5aa060d2911c175dae6b6b1a19f3)

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
3 years ago
Tom Hacohen 14b3cfca55 Handle stoken being the empty string.
For whatever reason some users were getting this which was causing this code
to fail.
4 years ago
Tom Hacohen b33a3c882e Subscriptions: allow subscribing without setting an stoken. 4 years ago
Tom Hacohen 233aeab98b Support login and invitations using email rather than just username. 4 years ago
Tom Hacohen 240469342b Move reporting item changes to a background task. 4 years ago
Tom Hacohen 61bd82f1e3 Subscriptions: stream missing items if user passed an old stoken. 4 years ago
Tom Hacohen f52facad1c Subscriptions: implement live subscriptions for collection items 4 years ago
Tom Hacohen 9f0430a6da Improve types. 4 years ago
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.
4 years ago
Tom Hacohen 6738c2cf20 Remove unused variable. 4 years ago
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.
4 years ago
Tom Hacohen a7fdb4a108 More typing fixes. 4 years ago
Tom Hacohen 709bc6c1fc Improve typing information. 4 years ago
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.
4 years ago
Tom Hacohen dbdff06e68 Move all the routers under their own dir. 4 years ago