Commit Graph

24 Commits

Author SHA1 Message Date
Valentin Deniaud 40142de8d2 misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:08:30 +02:00
Nicolas Roche 5d8b8b5bea utils: add date type to endpoint parameters (#72641) 2022-12-23 10:18:16 +01:00
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Lauréline Guérin 50604f402f
misc: fix no-else-raise pylint error (#62099) 2022-03-25 09:03:37 +01:00
Lauréline Guérin 2e59a6c4be
misc: fix useless-object-inheritance pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Nicolas Roche b8cd7dd130 tests: adapt logs check on charset-normalizer upgrade (#61262) 2022-01-31 17:07:41 +01:00
Nicolas Roche 9ec2738c95 tests: adapt logs check on charset-normalizer upgrade (#59511) 2021-12-09 10:32:18 +01:00
Nicolas Roche 438c56cba6 tests: skip logs added by charset-normalizer upgrade (#58995) 2021-11-25 17:12:58 +01:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin 9ab90f4b06
django22: fix tests (logs) (#49188) 2021-01-04 14:05:15 +01:00
Lauréline Guérin ce7018c82d
mdph13: fix disuation_dossier when no demandes (#40624) 2020-03-13 10:19:34 +01:00
Benjamin Dauvergne eef9f43d34 mpdh13: order demands by date (#31562) 2019-03-19 18:15:47 +01:00
Benjamin Dauvergne 48832b135a mdph13: remove check_status (#31452) 2019-03-15 13:36:21 +01:00
Benjamin Dauvergne 5d3369fd61 mdph13: pass client ip to backend (#31445) 2019-03-15 11:17:20 +01:00
Benjamin Dauvergne 74428481d1 mpdh13: PEP8 (#31445) 2019-03-15 11:16:46 +01:00
Benjamin Dauvergne 52522274e6 mdph13: only validate valued date fields (#31279) 2019-03-12 12:08:29 +01:00
Benjamin Dauvergne b8b8d140f6 mdph13: keep computed display name on Link (#31249) 2019-03-11 11:21:06 +01:00
Benjamin Dauvergne 941d080094 allow ressources to disable error logging in requests wrapper (#31114)
- modify ProxyLogger to get request from the "extra" parameter like Django, it
  incurs that we need to clean extra from non JSON-serializable values
  before using it in the ResourceLog model.

- modify to_json() so that request is passed to every log calls as
  before commit 5286592cf, now we will get error mails containing Django
  request details.

- resource can set "log_requests_errors = False" so that the Request
  wrapper never log at the error/warning level.

- small annoyance: requests errors are logged two times, at the INFO
  level and the ERROR level.

- connector MDPH13 is adapted to use all this.
2019-03-07 18:12:59 +01:00
Benjamin Dauvergne c2ed3a44ae mpdh13: validate date syntax (#31186) 2019-03-07 13:26:21 +01:00
Benjamin Dauvergne 884854c29e mdph13: add a text property to dossiers (fixes #31116) 2019-03-06 16:36:44 +01:00
Benjamin Dauvergne 4502d797cf views: implement GenericEndpointView.delete (#31118) 2019-03-06 10:42:56 +01:00
Benjamin Dauvergne ad953198e9 add MDPH13 connector (#30692) 2019-03-05 15:12:07 +01:00