Commit Graph

408 Commits

Author SHA1 Message Date
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
Nicolas Roche 3885a94e0c iparapheur: add endpoint to display raw wsdl (#30257) 2019-03-04 14:34:28 +01:00
Benjamin Dauvergne 235971b103 tests: run tests with postgres (fixes #30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 3a6c697add tests: fix null character in charfield (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne fe2772afb5 tests: mark some base_adresse tests as expected to fail (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne b2189b78b4 tests: fix inconsistencies in opengis tests (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 10f15acaae tests: fix grenoble_gru tests inconsistencies (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 07b7b3ec61 tests: fix vivaticket tests inconsistencies (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 91c12958b5 tests: clear cache between tests (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 43b837172b base_adresse: PEP8ness, code style (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 5e23162573 csv_datasource: PEP8ness, code style (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 204c214026 opengis: PEP8ness, code style (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne ddffadf025 grenoble_gru: PEP8ness, code style (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne f581c082a8 vivaticket: PEP8ness (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne a7ad6bda4b tests: non-regression (#30995) 2019-03-01 15:58:02 +01:00
Frédéric Péters 560fe4406a tests: pass open file to etree.parse() in cityweb tests 2019-02-27 09:33:27 +01:00
Frédéric Péters 08900c4537 actesweb: don't escape characters in demands (#30924) 2019-02-27 09:33:27 +01:00
Frédéric Péters 81690434be add connector for Cart@DS CS (#27144) 2019-02-20 13:36:32 +01:00
Frédéric Péters 5257471818 general: add basic asynchronous job infrastructure (#12469) 2019-02-20 11:31:48 +01:00
Emmanuel Cazenave fa76fbc8d7 manage availability check through the UI (#29965) 2019-02-20 11:07:55 +01:00
Thomas NOËL d501c6055b api_particulier: new test system (#30708) 2019-02-15 15:38:27 +01:00
Benjamin Dauvergne 5793a44733 tests: do not create a fake ressource model (#30221) 2019-02-12 15:17:59 +01:00
Benjamin Dauvergne 47d5994e8e utils: hide SSL warnings when verify is False (fixes #30221) 2019-02-12 15:06:25 +01:00
Benjamin Dauvergne bd01462050 tests: pep8ness, style, escape sequence in regexp pattern (#30221)
Also fix python2ism.
2019-02-12 15:04:44 +01:00
Frédéric Péters 7368816a87 tests: adjust test ods metadata to remove thumbnail references 2019-02-07 14:46:43 +01:00
Frédéric Péters d1badfefc1 csvdatasource: always select single sheet despite sheet_name value (#14058) 2019-02-07 14:39:45 +01:00
Serghei Mihai 4e90a47ad7 arpege_ecp: mark demands as readable (#30380) 2019-02-04 22:52:26 +01:00
Serghei Mihai 5d1d9a77d0 arpege_ecp: update user forms endpoint (#30365)
In order to respect demands retrieval API
2019-02-04 18:33:07 +01:00
Serghei Mihai 7a30fa535b actesweb: add group write permission on demand files (#30143) 2019-01-28 18:32:43 +01:00
Serghei Mihai 38149ceacb actesweb: make file encoding compliant with ActesWeb (#30033) 2019-01-28 09:38:50 +01:00
Frédéric Péters 4ba28f811b utils: fix logging details of http errors (#30069) 2019-01-24 15:47:00 +01:00
Serghei Mihai bfb8fdff41 actesweb: define applicant zipcode in demand file (#30025) 2019-01-23 13:29:39 +01:00
Thomas NOËL 154e689b3b add phone calls connector (#29829) 2019-01-21 17:31:31 +01:00
Serghei Mihai 0e9007392f vivaticket: add initial connector (#29314) 2019-01-18 14:43:39 +01:00
Benjamin Dauvergne 4bc3f0e1dd jsonresponse: use string conversion on exceptions (fixes #29060)
- introduce exception_to_text():
 - first try to use unicode/str on exception
 - then try to use repr,
 - finally only render class name and e.args (if present)
2019-01-16 16:00:46 +01:00
Serghei Mihai 1a56a4c21e actesweb: fix demand file permissions (#29774) 2019-01-16 11:28:55 +01:00
Thomas NOËL 4e36e9ae66 agoraplus: do not consider seconds in test (#21865) 2019-01-16 09:32:00 +01:00
Emmanuel Cazenave 1955efda7e planitech: filter place referential with custom attributes (#29666) 2019-01-15 09:41:38 +01:00
Emmanuel Cazenave 324cba80fa planitech: add some parameters to createreservation endpoint (#29659) 2019-01-15 09:41:17 +01:00
Emmanuel Cazenave bb8fee662b planitech: create users under the hood (#29514) 2019-01-15 09:40:25 +01:00
Emmanuel Cazenave 00dd8c4db8 iws: accept optionnal 17th char on STI code (#29632) 2019-01-15 09:38:00 +01:00
Frédéric Péters d3be91b12b trivial: use django.utils copy of the six compatibility module (#29695) 2019-01-14 16:12:17 +01:00
Emmanuel Cazenave e9b16ec213 planitech: use custom fields (#29127) 2019-01-09 11:13:26 +01:00
Emmanuel Cazenave 9e0f343697 planitech: expose identifiers and capacities as int (#29125) 2019-01-08 10:48:10 +01:00
Emmanuel Cazenave e515b6e351 planitech: use naive datetime (#29453) 2019-01-08 10:46:20 +01:00
Benjamin Dauvergne 5bee389a63 atos-genesys: do not use threads (#29320)
As threads were hiding errors from asynchronous requests, we now still
hide errors when cache is full, but log them.
2018-12-24 08:47:15 +01:00