Commit Graph

1768 Commits

Author SHA1 Message Date
Benjamin Dauvergne aff03ffdea translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-11-16 12:14:59 +01:00
Benjamin Dauvergne 0543594e30 ants_hub: proxy check-duplicate requests (#81229)
gitea/chrono/pipeline/head This commit looks good Details
To prevent having to configure the HUB URL and credentials in w.c.s.
2023-11-16 12:04:43 +01:00
Benjamin Dauvergne 7fab4c0f41 translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-11-16 10:59:31 +01:00
Benjamin Dauvergne 5716d6b3dc ants_hub: do not synchronize locked meetings (#80489)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-16 10:44:59 +01:00
Benjamin Dauvergne eafa816253 implement locking for event's agendas (#80489)
* add code to clean event's agendas lease/bookings
* add annotation helper method annotate_queryset_for_lock_code() to
  compute corrects places statistics given a lock_code (excluding
  bookings linked to this lock_code)
* use annotate_queryset_for_lock_code() in Datetimes and
  MultipleAgendasDatetimes
* make event's fillslot method completely atomic and add mechanic for
  handling the lock code
* removed handling of IntegrityError which cannot happen for events
* lock_code is for now not supported with RecurringFillslots
2023-11-16 10:40:35 +01:00
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
Benjamin Dauvergne 2d8912c0a3 agendas: add property for datetimes API url (#80489)
To simplify using datetimes URLs in tests.
2023-11-16 10:23:06 +01:00
Lauréline Guérin 3dac9ed0fb
api: set request_uuid and previous_state on bookings (#83098)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-16 09:19:30 +01:00
Lauréline Guérin 63a575f303
api: revert endpoint (#83098) 2023-11-16 09:19:30 +01:00
Lauréline Guérin 678ac6c1de
agendas: new fields in Booking model (#83098) 2023-11-16 09:19:30 +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
Lauréline Guérin 4291cc73db
api: iter MultipleAgendasEventsCheckStatus on user_checks (#82849)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-10 08:38:05 +01:00
Lauréline Guérin e4864ea95b agendas: partial bookings, compute double booking check (#82848)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-10 08:37:09 +01:00
Lauréline Guérin 9d1c33970c agendas: refresh_computed_times on booking (#82848) 2023-11-10 08:37:09 +01:00
Frédéric Péters 031961ad80 translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-11-02 14:47:56 +01:00
Lauréline Guérin 5b8419efe5 agendas: add times in notify_checked for partial bookings (#82842)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-02 12:22:11 +01:00
Lauréline Guérin cff4ce0861 agendas: notify_checked, loop on booking checks instead of bookings (#82842) 2023-11-02 12:22:11 +01:00
Lauréline Guérin 737ba6f0bb manager: fix display of "check event" button (#82839)
gitea/chrono/pipeline/head Build queued... Details
2023-11-02 12:20:22 +01:00
Lauréline Guérin 72be0166f3 manager: fold check filters (#82839) 2023-11-02 12:20:22 +01:00
Lauréline Guérin dae40958f4 manager: fix event details head title (#82839) 2023-11-02 12:20:22 +01:00
Lauréline Guérin 05703dddb1 misc: fix failing tests at midnight (#82926)
gitea/chrono/pipeline/head This commit looks good Details
2023-11-02 12:19:12 +01:00
Frédéric Péters 78928bc760 api: strip white spaces and dots from received phone numbers (#82889)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-31 16:32:29 +01:00
Thomas NOËL a548753f2a debian: add uwsgi/chrono SyslogIdentifier in service (#82977)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-31 13:18:22 +01:00
Emmanuel Cazenave 8a7f83a02d translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-10-31 12:03:11 +01:00
Emmanuel Cazenave 36d1ea9ec0 setup: compute pep440 compliant dirty version number (#81731)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-30 17:40:37 +01:00
Lauréline Guérin 368c239218 manager: fix wording in partial booking day view (#82840)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-30 16:10:06 +01:00
Lauréline Guérin 81aa0d95fc manager: partial bookings, no delete option if no check object (#82840) 2023-10-30 16:10:06 +01:00
Lauréline Guérin 61a6bc35bb
misc: fix failing tests at midnight (#82920)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-28 00:43:33 +02:00
Lauréline Guérin b15e4a3c7c
api: complete agendas dependencies (#82713)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-27 15:51:50 +02:00
Lauréline Guérin f5e3f625d2
api: make import/export endpoints generic for other kinds of objects (#82713) 2023-10-27 15:51:50 +02:00
Lauréline Guérin a940ee3961 api: export/import, add uuid for role in dependencies view (#82764)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-27 15:49:46 +02:00
Lauréline Guérin 9defbefe1e
misc: fix failing tests at midnight (#82753)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-27 10:40:29 +02:00
Emmanuel Cazenave cba5520541 api: add module with applification API (#82198)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-17 10:29:46 +02:00
Valentin Deniaud a25a8e6ef1 translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-10-09 10:58:28 +02:00
Valentin Deniaud 2a56ba5432 manager: allow adding second check to partial booking (#80371)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-09 10:48:50 +02:00
Valentin Deniaud 2e22706c08 manager: add separate view to update booking check (#80371) 2023-10-09 10:48:50 +02:00
Valentin Deniaud 81e93dd4c5 agendas: allow multiple checks by booking (#80371) 2023-10-09 10:48:50 +02:00
Valentin Deniaud 3cb80d478a agendas: store computed start/end times on booking check (#80371) 2023-10-09 10:48:50 +02:00
Valentin Deniaud ec497c66d9 all: use new BookingCheck model (#80371) 2023-10-09 10:48:50 +02:00
Valentin Deniaud bcae843c0d agendas: migrate booking check data into new model (#80371) 2023-10-09 10:48:50 +02:00
Valentin Deniaud 6d31c85dd7 agendas: add BookingCheck model (#80371) 2023-10-09 10:48:50 +02:00
Frédéric Péters 17cddfbd4a tox: keep on testing drf 3.12 only for now (#81946)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-05 22:04:24 +02:00
Frédéric Péters 57a67073e3 misc: replace serializers.NullBooleanField (#81946) 2023-10-05 22:04:24 +02:00
Frédéric Péters ca32dc3a36 setup: allow djangorestframework 3.14 (#81946) 2023-10-05 22:04:24 +02:00
Valentin Deniaud fb7d928206 all: do not write booking check info in secondary bookings (#81986)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-05 11:06:53 +02:00
Valentin Deniaud 9b315f4be3 api: count secondary booking presence from primary booking in stats (#81986) 2023-10-05 11:06:53 +02:00
Valentin Deniaud 1fd95681fe manager: allow checking partial bookings separately (#81370)
gitea/chrono/pipeline/head Build queued... Details
2023-10-05 10:56:41 +02:00
Frédéric Péters fc86701ab2 translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-10-04 14:32:49 +02:00
Valentin Deniaud f34af55592 ants_hub: differentiate "place" translation (#81980)
gitea/chrono/pipeline/head This commit looks good Details
2023-10-04 11:59:07 +02:00
Valentin Deniaud 2cae3b7724 translation update
gitea/chrono/pipeline/head This commit looks good Details
2023-10-03 11:56:38 +02:00