Commit Graph

18 Commits

Author SHA1 Message Date
Benjamin Dauvergne d6a5861876 implement locking for meeting's agendas (#17685)
* add a Lease model to associate a lock_code to a booking,
* add a new command "clean_leases" run by cron every 5 minutes to clean
  expired leases,
* add new parameter lock_code to get_all_slots() and exclude conflicting
  booking linked to this lock_code if provided,
* accept new lock_code query string parameter in the datetimes endpoints
  (to see available slot minus the locked ones, if the user want to
  change the chosen slot)
* add new parameters lock_code and confirm_after_lock to the fillslot
  endpoint:
  - when lock_code is used without confirm_after_lock:
    1. look for available slots excluding events/booking pairs associated with the given lock_code, by passing lock_code to get_all_slots
    2. before creating the new event/booking pair, clean existing pairs
       associated to the lock code,
    3. after creating the new pair, create a new Lease object with the
       lock code
  - when lock_code is used with confirm_after_lock do all previous steps
    but 3., making a normal meeting booking.
* add tests with lock_code on meeting's datetimes and fillslot use,
  checking exclusion by resources or user_id works with lock_code
2023-11-16 10:37:00 +01:00
Thomas NOËL 6a411b1859 debian: add back memory-report to uwsgi default configuration (#80451)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-13 11:32:57 +01:00
Thomas NOËL 7359d50232 debian: remove memory-report from uwsgi default configuration (#79890)
gitea/chrono/pipeline/head This commit looks good Details
2023-07-20 17:56:25 +02:00
Benjamin Dauvergne 7508be742d add ants_hub application (#76286)
gitea/chrono/pipeline/head This commit looks good Details
It manages synchronization of meetings agendas with the ANTS hub.
2023-06-07 14:52:29 +02:00
Thomas NOËL 1c0c486028 debian/uwsgi: use cron2 (#64474) 2023-01-05 11:27:51 +01:00
Pierre Ducroquet 417b489eaf uwsgi: new configuration (#67586) 2022-10-10 18:16:18 +02:00
Thomas NOËL af8ae79d8e debian/uwsgi: use unique-cron (#63395) 2022-04-06 10:43:34 +02:00
Valentin Deniaud 5ca2fa0e91 agendas: add command to update shared custody holiday rules (#62801) 2022-03-31 15:02:19 +02:00
Emmanuel Cazenave 4ffa326c7c uwsgi: enable provisionning spooler (#55092) 2021-08-31 12:31:09 +02:00
Frédéric Péters f2e37ff8f9 debian: set spooler-max-tasks for uwsgi (#54627) 2021-06-07 15:30:02 +02:00
Frédéric Péters 20b3ca6412 debian: enable uwsgi memory reports (#54610) 2021-06-06 10:34:42 +02:00
Valentin Deniaud c68902b967 agendas: update recurrences asynchronously (#50561) 2021-04-28 17:27:46 +02:00
Lauréline Guérin cd5d93ca52
misc: add uwsgi spooler (#50723) 2021-02-16 16:04:49 +01:00
Lauréline Guérin 22c2c8e40b
misc: use uwsgi to run cron tasks (#50018) 2021-02-04 08:40:22 +01:00
Frédéric Péters 2e2bb9fedc debian: use cheaper uwsgi subsystem (#45455) 2020-07-24 15:22:15 +02:00
Frédéric Péters 97e9741641 debian: switch to Python 3 (#35492) 2019-09-13 09:32:08 +02:00
Frédéric Péters 9d902b28fd debian: disable uwsgi memory report (#19840) 2019-01-04 14:10:21 +01:00
Frédéric Péters 96f55405ac debian: use uwsgi to serve app (#16527) 2018-12-19 15:24:25 +01:00