Commit Graph

109 Commits

Author SHA1 Message Date
Benjamin Dauvergne 807a88c88a misc: load middleware in SAML views
gitea/ants-hub/pipeline/head This commit looks good Details
2023-05-23 10:02:02 +02:00
Benjamin Dauvergne 782d8adb59 misc: add a profiling middleware
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 3a8c844535 misc: optimize use of middlewares
Middleware are useless for the API endpoints, so we only apply them to
views of the admin site.
2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 58b91ba0de misc: optimize using raw sql
Use raw SQL to remove overhead of Django ORM.
2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 81c5984edc misc: optimize generation of rdv url
reverse() and request.build_absolute_uri() are expensive, replace them
by staticaly generating URLs with a BASE_URL setting.
2023-04-14 01:14:57 +02:00
Benjamin Dauvergne f6466af00c misc: optimize check of auth_token 2023-04-14 01:14:57 +02:00
Benjamin Dauvergne f50c2d0ea9 misc: optimize querying with values_list() 2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 9b5430f8ca misc: optimize sqlite3 pragma 2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 5a8414f572 settings.py: change datefmt of logs 2023-04-14 01:14:57 +02:00
Benjamin Dauvergne 3195d4c3a3 tox.ini: add runuwsgi and bench targets 2023-04-14 01:14:52 +02:00
Benjamin Dauvergne 0cc9bcdd4f tests: test display of URL for chrono
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-12 18:55:44 +02:00
Benjamin Dauvergne 179abf7cda tests: add test on naive times in update to rendez-vous-disponibles
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-12 18:25:59 +02:00
Benjamin Dauvergne c47188eaa4 misc: use make_naive from ants_hub.timezone 2023-04-12 18:19:05 +02:00
Benjamin Dauvergne 5f3fff4ced admin: show display links on nom columns
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-12 17:41:42 +02:00
Benjamin Dauvergne 6d3804a56b admin: show URL for configuring chrono 2023-04-12 17:41:42 +02:00
Benjamin Dauvergne 2d73c89bdc api: add missing WWW-Authenticate header 2023-04-12 17:37:56 +02:00
Benjamin Dauvergne 9a74cf613a misc: remove new-api-key command 2023-04-12 12:24:00 +02:00
Benjamin Dauvergne bac95b8367 tests: add more
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-12 12:23:32 +02:00
Benjamin Dauvergne 96e5b8c451 api: do not check what is already checked by the JSON schema 2023-04-12 12:23:23 +02:00
Benjamin Dauvergne 98f12dde88 models: use nowait=True when locking 2023-04-12 12:22:51 +02:00
Benjamin Dauvergne 789e5aa6e9 tests: add more
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-12 11:54:40 +02:00
Benjamin Dauvergne 52e0f1d6a8 admin: complete configuration
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-11 23:17:35 +02:00
Benjamin Dauvergne eab5b646e8 debian: prefer uwsgi's logto2 directive
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-08 01:10:22 +02:00
Benjamin Dauvergne f7ab870963 api: do not log if nothing was changed
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-08 00:54:54 +02:00
Benjamin Dauvergne ca665e47c9 debian: divert uwsgi logs 2023-04-08 00:52:55 +02:00
Benjamin Dauvergne add7d5a149 debian: improve logging configuration
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-08 00:23:30 +02:00
Benjamin Dauvergne d0809a11d6 misc: fix trace when count_by_model is empty
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 23:47:41 +02:00
Benjamin Dauvergne 5a5a1e8c87 debian: log to systemd
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 21:58:58 +02:00
Benjamin Dauvergne a36d9f30ae api: add logs to chrono endpoints
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 21:49:33 +02:00
Benjamin Dauvergne f9ce1d00fc api: add logs to ants endpoints 2023-04-07 21:24:23 +02:00
Benjamin Dauvergne 244525b90b misc: uniformize collectivite and lieu creation/update, better use of full_clean()
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 18:56:38 +02:00
Benjamin Dauvergne b986bdfb92 misc: return 400 on validation error 2023-04-07 18:56:09 +02:00
Benjamin Dauvergne 062b06f204 misc: always handle time as naive 2023-04-07 18:55:52 +02:00
Benjamin Dauvergne 49e859b499 schema: remove obsolete RETRIEVAL value 2023-04-07 18:55:13 +02:00
Benjamin Dauvergne 2ba66c24f6 misc: correctly report deleted lieux/plages/rdvs on full update
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 15:08:03 +02:00
Benjamin Dauvergne f29d36f3d8 misc: implement full synchronization
gitea/ants-hub/pipeline/head This commit looks good Details
* use full=True to delete missing lieu/plage/rendez-vous
* prevent useless update/insert/delete of unchanged models
2023-04-07 14:12:15 +02:00
Benjamin Dauvergne 5a85c81e1a data: adapt admin fields
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-07 10:37:51 +02:00
Benjamin Dauvergne cf8a95af50 setup.py: produce PEP440 compatible version when repositoty is dirty 2023-04-07 10:37:08 +02:00
Benjamin Dauvergne 7199504489 misc: improve TypeDeRdv interface
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-05 16:18:53 +02:00
Benjamin Dauvergne 0974ce8372 data: add __str__ method to Config 2023-04-05 16:02:26 +02:00
Benjamin Dauvergne 47b3f038d3 misc: adapt to py39 datetime.fromisoformat
gitea/ants-hub/pipeline/head This commit looks good Details
Python3.9 datetime library does not parse datetimes with Z suffix.
2023-04-05 10:52:27 +02:00
Benjamin Dauvergne 3253207ee2 api: fix typo in searchApplicationIds endpoint
gitea/ants-hub/pipeline/head There was a failure building this commit Details
2023-04-05 10:47:08 +02:00
Benjamin Dauvergne 62d5f26fcc api: allow access to ANTS API for logged users
gitea/ants-hub/pipeline/head There was a failure building this commit Details
2023-04-05 10:45:18 +02:00
Benjamin Dauvergne 2fa705b475 tox.ini: do not use the installed script 2023-04-05 10:43:02 +02:00
Benjamin Dauvergne c3b531b49e admin: add Config model 2023-04-05 10:36:52 +02:00
Benjamin Dauvergne e5349dc1ce misc: integrate review by ANTS
gitea/ants-hub/pipeline/head There was a failure building this commit Details
* format/parse date as localtime of Paris with 'Z' suffix
* move settings in the database with a Config model
* add a different setting for auth token toward and from ANTS
* add setting for the base URL of the ANTS API
* use timezone module from chrono to prevent bugs with dst
2023-04-05 10:18:46 +02:00
Benjamin Dauvergne 633c50b5d0 tests: augment test on searchApplicationIds parameters parsing 2023-04-04 09:51:53 +02:00
Benjamin Dauvergne ab88a71116 ants: change handling of reason and documents_number
gitea/ants-hub/pipeline/head This commit looks good Details
2023-04-04 09:48:10 +02:00
Benjamin Dauvergne a2b3ad0712 data: make get_annulation_url() piggyback on get_gestion_url() 2023-04-04 09:19:31 +02:00
Benjamin Dauvergne 50df4258b0 data: improve display of horaires 2023-04-04 08:06:46 +02:00