etesync-server/django_etebase
Tom Hacohen 5a6c8a1d05 Gracefully handle uploading the same revision
This is needed so that immediately re-played requests don't fail.

Consider for example the following scenario: a client makes a batch
request that registers correctly on the server, but fails to return
(e.g. a networking error after the request has been processed). The
client would think that the request failed, but the server will already
have the up to date information. This commit just returns a successful
status if this request is sent again (by the client retrying the
request) instead of returning a conflict.

This however doesn't handle the case of a request failing, a
modification being made by another client, and then the request being
retried. This case will stay fail.
2020-12-27 11:22:02 +02:00
..
drf_msgpack Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
migrations Collection: also save the collection UID on the model itself. 2020-12-14 13:33:11 +02:00
sendfile Sendfile: add a sendfile module based on django-sendfile2 2020-12-14 16:47:47 +02:00
token_auth Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
__init__.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
admin.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
app_settings.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
apps.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
exceptions.py Reformat some files using black. 2020-12-01 12:45:38 +02:00
models.py Remove unused imports. 2020-12-14 16:47:47 +02:00
parsers.py Chunk file uploader: accept all kinds of media types. 2020-12-15 13:59:06 +02:00
permissions.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
renderers.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
serializers.py Gracefully handle uploading the same revision 2020-12-27 11:22:02 +02:00
signals.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
tests.py Rename django_etesync to django_etebase. 2020-06-16 17:14:53 +03:00
urls.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
utils.py Use black for code formatting and format the code 2020-11-14 17:04:41 +02:00
views.py Chunk download: use the new sendfile to serve files. 2020-12-14 16:47:47 +02:00