découpage de get_all_slots() (#76335) #67

Merged
bdauvergne merged 5 commits from wip/76335-Decoupage-de-get-all-slots-en-de into main 2023-05-30 22:24:58 +02:00

5 Commits

Author SHA1 Message Date
Benjamin Dauvergne 0ed652c058 agendas: implements free time calculation (#76335)
gitea/chrono/pipeline/head This commit looks good Details
SharedTimePeriod gets a get_intervals(mintime, maxtime) method returning the
list of intervals of open time between mintime and maxtime.

Agenda gets a get_free_time(mintime, maxtime) method returning the
list of intervals of open time between mintime and maxtim.
2023-05-30 15:36:13 +02:00
Benjamin Dauvergne 04c50f0450 tests: add helper functions to manage meetings agendas (#76335) 2023-05-30 15:36:13 +02:00
Benjamin Dauvergne 48e4eb95f4 utils: add IntervalSet.__add__ (#76335)
Most algo around agendas amounts to adding a bunch of intervals them
removing some. The method to add them was missing.
2023-05-30 15:36:13 +02:00
Benjamin Dauvergne 24a7ccc07b misc: move interval module in chrono.utils (#76335)
Just some cleaning.
2023-05-30 15:36:13 +02:00
Benjamin Dauvergne cc38865a04 agendas: move get_all_slots() and get_min/max_datetime() as Agenda's methods (#76335) 2023-05-30 15:36:13 +02:00