Benjamin Dauvergne
dbffe4bef0
api: simplify push_rdv()/upload_rdvs() ( #89609 )
...
gitea/ants-hub/pipeline/head This commit looks good
Details
* all errors are transmitted through exceptions
* last_upload is always updated even if no API call is necessary
* report when DELETE returns rowcount=0 or POST is not success
2024-04-18 17:58:32 +02:00
Benjamin Dauvergne
99a25b6df9
misc: add logo_url to JSON schema of rdv-disponibles ( #89726 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2024-04-18 16:18:51 +02:00
Benjamin Dauvergne
4e6e41ea8e
api: fix retrieval of lieu attributes ( #89726 )
2024-04-18 16:18:51 +02:00
Benjamin Dauvergne
65b6954dc3
misc: use ANTS_HUB_BASE_URL to make callback_url ( #89701 )
gitea/ants-hub/pipeline/head Build queued...
Details
2024-04-18 16:18:39 +02:00
Benjamin Dauvergne
13a9f6e7af
api: do not return canceled rendez-vous in searchApplicationIds ( #89729 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2024-04-18 14:15:24 +02:00
Benjamin Dauvergne
222760ced3
misc: add missing __init__.py for sdist to work ( #89314 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2024-04-15 19:25:44 +02:00
Benjamin Dauvergne
be65c4b929
misc: use BEGIN IMMEDIATE to start transactions ( #89314 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2024-04-15 10:56:13 +02:00
Benjamin Dauvergne
a8553f0c72
api: send a correct management_url to /api/appointments ( #89529 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2024-04-14 12:58:35 +02:00
Benjamin Dauvergne
66c218ce4d
setup.py: relax constraint on jsonschema ( #84952 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-12-21 10:48:17 +01:00
Benjamin Dauvergne
8fafb09a47
api/chrono: does not return HTTP 500 with error "too busy" ( #84817 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-12-17 14:12:57 +01:00
Benjamin Dauvergne
62ea9bc79a
api/ants: log part of the response on HTTP errors ( #84720 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-12-14 10:39:52 +01:00
Benjamin Dauvergne
0d4155ed3d
api/ants: check existing appointments before creating/deleting ( #83558 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-11-15 22:54:48 +01:00
Benjamin Dauvergne
dcb622a48e
ants/api: refactor call to the doublon API ( #83558 )
2023-11-15 22:54:38 +01:00
Benjamin Dauvergne
455218cdc0
api/ants: fix setting of last_upload ( #83553 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-11-15 18:51:35 +01:00
Benjamin Dauvergne
498febe19c
api/ants: prevent too long transactions when pushing rdvs ( #83553 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-11-15 18:17:04 +01:00
Benjamin Dauvergne
64cbac4ccc
chrono: normalize identifiant_predemande when received ( #83552 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-11-15 18:06:40 +01:00
Benjamin Dauvergne
98c1546c48
ants: normalize and check identifiant_predemande on push ( #83552 )
2023-11-15 17:58:07 +01:00
Benjamin Dauvergne
57edcdf88f
misc: add missing __init__.py files ( #76412 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-11-15 16:58:39 +01:00
Benjamin Dauvergne
0fa00339c6
Reimplement predemandes API over the new rdv-status API ( #76412 )
...
gitea/ants-hub/pipeline/head This commit looks good
Details
To simplify migration from the old to the new API.
2023-11-15 15:31:19 +01:00
Benjamin Dauvergne
2f9cd366b3
Implement new rdv-status endpoint ( #76412 )
...
* Use the new /api/status endpoint the "Optimisation des rendez-vous en
mairies" to check status of some "application_ids" / "identifiants de
pré-demande".
* Always return "err": 0 if the web-service responds, and return a
simple "accept_rdv" boolean to test in w.c.s. conditions. It prevents
useless logged errors,
* When accept_rdv is false, the message key contains the reason to show
to users and an eventual list of appointments with the concerned
identifiant_predemande:
{
"data": {
"accept_rdv": false,
"message": "Prédemande·\"ABCDE12345\"·déjà·liée·à·un·ou·des·rendez-vous.",
"appointments": [
{
"appointment_date": "2023-09-20T09:00:11",
"identifiant_predemande": "ABCDE12345",
"management_url": "https://rdvenmairie.fr/gestion/login?ants=83AHERZY8F&appointment_id=64594c435d7bfc0012fa8c87&canceled=true ",
"meeting_point": "Mairie de Luisant",
}
],
}
2023-11-15 13:02:54 +01:00
Benjamin Dauvergne
d5e6f79257
Implement API v2 "Optimistion des rendez-vous en mairies" ( #76412 )
...
Swagger: https://rdvmairie-optimisation-dev.osc-secnum-fr1.scalingo.io/docs
* RendezVous models are now soft-deleted through the canceled datetime
field when specifically stated as 'annule' on the
rendez-vous-disponible endpoint or when absent from a full update,
* last-upload timestamp field on the RendezVous model allow filtering of
created/updated RendezVous instances to push,
* new configuration keys are added to store the authentication token and
base URL of the new API endpoints.
* new command upload-rdvs is run every 3 minutes by uwsgi cron to push
new/deleted rendez-vous into the ANTS database.
* soft-deleted rendez-vous are excluded from aggregated statistics on
active rendez-vous
* Tests added for success and error path in ants_hub.api.ants routines.
2023-11-15 13:02:54 +01:00
Benjamin Dauvergne
c6b5852a50
tox.ini: add allowlist_externals for local scripts ( #76412 )
2023-11-15 12:22:09 +01:00
Thomas NOËL
f48ee32716
debian: add back memory-report to uwsgi default configuration ( #80451 )
gitea/ants-hub/pipeline/head There was a failure building this commit
Details
2023-11-13 11:30:28 +01:00
Thomas NOËL
587f6f06e6
debian: add uwsgi/ants-hub SyslogIdentifier in service ( #82977 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-10-31 13:15:40 +01:00
Frédéric Péters
26b7d912b6
ci: keep on using pylint 2 while pylint-django is not ready ( #81905 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-10-03 06:21:25 +02:00
Benjamin Dauvergne
b0c2736d63
Revert "use correct iso8601 datetime in availableTimeSlots ( #80133 )"
...
gitea/ants-hub/pipeline/head This commit looks good
Details
This reverts commit ee5bda2f36
.
2023-09-13 15:17:48 +02:00
Benjamin Dauvergne
ee5bda2f36
use correct iso8601 datetime in availableTimeSlots ( #80133 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-09-05 19:09:33 +02:00
Benjamin Dauvergne
3c4b0b50b5
chrono: allow asking for many pre-demandes statuses ( #80597 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-08-28 11:58:24 +02:00
Benjamin Dauvergne
1927c358f7
retry on exception 'database is locked' ( #80538 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-08-24 17:27:12 +02:00
Valentin Deniaud
a988b26a41
misc: update git-blame-ignore-revs to ignore quote changes ( #79788 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-08-16 11:52:13 +02:00
Valentin Deniaud
6931c3cee1
misc: apply double-quote-string-fixer ( #79788 )
2023-08-16 11:52:13 +02:00
Valentin Deniaud
5d5f0049dc
misc: add pre commit hook to force single quotes ( #79788 )
2023-08-16 11:52:13 +02:00
Thomas NOËL
df0b6ed18b
debian: remove memory-report from uwsgi default configuration ( #79890 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-07-21 15:13:55 +02:00
Frédéric Péters
765de9116b
debian: add missing epoch to python3-django version ( #79646 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-07-12 11:31:47 +02:00
Frédéric Péters
fa4f760440
ci: build deb package for bookworm ( #78968 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-23 18:13:34 +02:00
Benjamin Dauvergne
a4dfa63d98
tests: use different latitude and longitude in fixture
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-22 18:30:24 +02:00
Benjamin Dauvergne
8ec5582d9b
api/chrono: fix cancellation of a rendez-vous with full synchronisation ( #78692 )
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-19 08:44:37 +02:00
Benjamin Dauvergne
b4ee48df65
tests: fix pylint warning
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-19 08:05:44 +02:00
Benjamin Dauvergne
6e6855e408
misc: typo applications_ids -> application_ids
gitea/ants-hub/pipeline/head There was a failure building this commit
Details
2023-06-19 07:57:54 +02:00
Benjamin Dauvergne
67e5c8578c
allow value 5 for documents_number
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-15 18:59:41 +02:00
Benjamin Dauvergne
cafe298c22
api/chrono: use more idiomatic code for update
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-14 10:36:30 +02:00
Benjamin Dauvergne
f3e91b384a
admin: show the URL to configure in hobo (bis)
...
gitea/ants-hub/pipeline/head This commit looks good
Details
Fix tests.
2023-06-14 09:46:43 +02:00
Benjamin Dauvergne
f09f0b1ef7
admin: show the URL to configure in hobo
gitea/ants-hub/pipeline/head There was a failure building this commit
Details
2023-06-13 21:52:01 +02:00
Benjamin Dauvergne
19ba7ed034
misc: publish static files when running locally
2023-06-13 21:51:28 +02:00
Benjamin Dauvergne
48095f1eaf
admin: setup an admin role
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-13 16:05:24 +02:00
Benjamin Dauvergne
5ccf4b0003
admin: make synchronized objects uneditable
2023-06-13 15:44:50 +02:00
Benjamin Dauvergne
67d129dbf5
misc: accept different durations for the same plage's date/types
...
gitea/ants-hub/pipeline/head This commit looks good
Details
It is a misconfiguration but to prevent any blocking of the publishing
of available slots we are now accepting it. To allow updating of Plage
objects, Plage.duree is now part of the unique together index with date,
personnes, types_de_rdv and lieu.
If an empty plage is sent by chrono (no property "heure_debut"), all
plages for the same day, type_de_rdv and person number are deleted, in
this case only the duration is ignored.
IntervalSet is imported from chrono to simplify the aggregation of the
time spans (the error "les plages se chevauchent" is no more).
2023-06-13 10:44:10 +02:00
Benjamin Dauvergne
631f060f71
chrono: do not check uniqueness on id and source_id when updating
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-12 18:21:44 +02:00
Benjamin Dauvergne
674509af00
chrono: reorder plage periods before injection in horaire list
gitea/ants-hub/pipeline/head This commit looks good
Details
2023-06-12 13:01:28 +02:00
Benjamin Dauvergne
f93fb4f705
tests: fix typo
2023-06-12 12:58:02 +02:00