cal.pub0.org/apps/web/test/lib
Hariom Balhara 0e0a78c47e
Fix/Round Robin (#6121)
* Identify owner for a timeslot and check busyness against his schedule only

* Fix TS errors

* Fix flatmap

* Fix xisting unit tests

* Prevent duplicate slots by merging, userId -> userIds (multi)

* Small fix to potential undefined

* Moved duplicate prevention to buildSlots function

* Apply date override on a per user basis

* Prevent -1 being added to computedLocalAvailability

* Removed console.log

* Apply override properly on COLLECTIVE

* Default timeZone to UTC when undefined

* isSame doesn't work when the day shifts, isBetween instead

* Iterate over all slot.userIds schedules to identify the first user schedule that matches

* add round-robin test

Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-12-21 19:32:42 +00:00
..
checkBookingLimits.test.ts Feat Booking Limits (#4759) 2022-10-12 05:29:04 +00:00
getAggregateWorkingHours.test.ts Fix/Round Robin (#6121) 2022-12-21 19:32:42 +00:00
getAvailabilityFromSchedule.test.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
getSchedule.test.ts One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
getWorkingHours.test.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00
parseZone.test.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
slots.test.ts Fix/Round Robin (#6121) 2022-12-21 19:32:42 +00:00
team-event-types.test.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00