Innablr / revolver

AWS Powercycle Facility
MIT License
2 stars 3 forks source link

Support non-contiguous days in schedule day selection #382

Open lyricnz opened 1 month ago

lyricnz commented 1 month ago

eg:

Can be worked around by having multiple near-duplicate schedules, each of which cover one range of days.

lyricnz commented 1 month ago

Sample tests for scheduleWindow.ts (currently fail)

    ['Start=08:30|mon;Stop=09:00|mon', 30],
    ['Start=08:30|mon,thu-fri;Stop=09:00|mon,thu-fri', 30 * 3],
    ['Start=08:30|mon-tue,thu-fri;Stop=09:00|mon-tue,thu-fri', 30 * 4],
    ['Start=08:30|mon-wed,fri;Stop=09:00|mon-tue,thu-fri', 30 * 4],