Benjamin Dauvergne
077ca84777
views: set Location properly after upload ( fixes #30218 )
2019-01-30 12:16:23 +01:00
Benjamin Dauvergne
5422efa4b6
tests: PEP8 ( #30218 )
2019-01-30 12:09:12 +01:00
Paul Marillonnet
7e9377c8fc
fix test db name ( #27104 )
2018-12-17 16:12:34 +01:00
Frédéric Péters
510bd0c84f
add compatibility with python 3 ( #25642 )
2018-08-12 17:48:35 +02:00
Frédéric Péters
6d753a0f45
api: allow multiple occurences of same document in portfolio ( #23339 )
2018-04-24 10:23:11 +02:00
Benjamin Dauvergne
90d3f824d9
tests: fix no determinism in tests when using postgresql ( #23134 )
2018-04-12 16:30:03 +02:00
Benjamin Dauvergne
a465f2c176
oauth2: add command oauth2-put-document ( fixes #22948 )
2018-04-09 09:37:21 +02:00
Benjamin Dauvergne
76532ef64a
oauth2: add command oauth2-create-client ( fixes #22949 )
2018-04-09 09:34:25 +02:00
Benjamin Dauvergne
9a824087cc
utils: fix make_url() use by list_to_pick view ( fixes #22888 )
...
Return callback to pick view takes an url argument, same name as the
first argument to make_url() :/
2018-03-29 17:00:50 +02:00
Benjamin Dauvergne
2db8756f48
fargo: prevent pushing the same file many times ( #22682 )
...
Bug was discovered because we added the creation_date non-null field as
content_hash is the primary key. When saving a Document with the same
content_hash, Django try to update the existing document by setting
creation_date to NULL which fails.
2018-03-27 13:08:06 +02:00
Benjamin Dauvergne
7089a0fa7e
add a fargo-cleanup command ( #22682 )
2018-03-27 11:20:44 +02:00
Benjamin Dauvergne
59ec2bea1a
oauth2: do not use the document hash as primary key for temp files ( #22717 )
...
It prevents a client from pushing the same file multiple times, which
makes temporary errors harder to handle (client would have to handle a
failure from the web-service). We allow any number of push of the same
document, orphans will be cleaned up by a background task, and storage
is not duplicated as document are deduplicated through their hash.
2018-03-22 21:15:30 +01:00
Benjamin Dauvergne
1dddba4baf
oauth2: link authorizations and temp files to clients ( #22717 )
2018-03-22 11:47:47 +01:00
Benjamin Dauvergne
2fe7382ab3
oauth2: improve coding style ( #22717 )
...
* declare all views with .as_view()
* add helper make_url() to properly add parameters to query string of
redirect_uri
* stop threading the redirect_uri through the session
* make POST form target implicit, so that parameters are kept
* do checks in dispatch() to share them between POST and GET methods
2018-03-21 23:53:40 +01:00
Benjamin Dauvergne
d780a085a9
fix typo "attachement" -> "attachment" ( fixes #22676 )
2018-03-21 19:03:34 +01:00
Josue Kouka
e22648dd3f
api: authenticate OAUTH2 clients through Authentic ( fixes #16842 )
2018-03-06 12:08:41 +01:00
Josue Kouka
85ebba8394
api: use DRF for OAUTH2 APIs ( #16842 )
2018-03-06 12:08:27 +01:00
Frédéric Péters
0bf5b6b90f
misc: add support for django 1.11 ( #16057 )
2017-12-12 11:00:25 +01:00
Jean-Baptiste Jaillet
fe873ff083
add oauth2 access to get and put a document ( #14147 )
2017-11-06 17:37:00 +01:00
Benjamin Dauvergne
bab24b48c0
tests: replace TestApp by classic app fixture ( fixes #19900 )
2017-11-06 15:08:36 +01:00
Jean-Baptiste Jaillet
fd1fefe082
document: correct method delete ( #16186 )
2017-05-08 23:51:03 +02:00
Frédéric Péters
03baa36769
general: store document mime type and use it as css class ( #15849 )
2017-04-12 18:07:30 +02:00
Benjamin Dauvergne
cb97010961
tests: adapt to changes in django-webtest
2017-03-22 22:48:08 +01:00
Benjamin Dauvergne
6a5ca25f2e
display humanized file sizes ( #15270 )
2017-03-06 15:09:40 +01:00
Josue Kouka
244c4ca485
test api: fix assertion errors
2016-08-03 11:34:50 +02:00
Josue Kouka
7a85464a6b
url encode filenames ( #12793 )
2016-08-03 11:25:30 +02:00
Josue Kouka
cf2e7b6ba2
misc: fix document max size api asserts
2016-08-03 11:23:10 +02:00
Thomas NOËL
73f611de34
add explicit deletable_by_user attribute ( #10890 )
2016-06-30 10:56:19 +02:00
Benjamin Dauvergne
cd9cb5a20f
tests: fix test to use the tax assesment notice ( fixes #11195 )
2016-06-07 02:01:04 +02:00
Benjamin Dauvergne
f68253a408
converge metadata schema format and w.c.s. fields JSON serialization
2016-04-06 12:01:03 +02:00
Benjamin Dauvergne
e92438db1f
fix push document API
2016-03-31 22:17:17 +02:00
Benjamin Dauvergne
8365adb4ee
add constraint on document box size ( fixes #278 )
2016-03-28 03:28:54 +02:00
Benjamin Dauvergne
eddee96dcf
add constraint on document size ( fixes #279 )
2016-03-28 03:28:51 +02:00
Benjamin Dauvergne
a302008b4b
add validation API ( fixes #10375 )
...
- a serializer for referring to an user factorized with the push document API
- add common mixin for handling validation errors and successfull results
- add common fixtures for writing tests
2016-03-28 03:28:10 +02:00
Frédéric Péters
6779e07d01
tests: only check path of redirection
2016-01-05 18:05:10 +01:00
Frédéric Péters
f36f4351d5
tests: sync with combo way of things
2015-08-18 17:27:46 +02:00