[rotang] Generate shifts with no previous shifts and no StartDate fails.

This CL fixes the error when generating new shifts with no previous shifts
and no StartDate set.

Additionally it cleans up the ShifStore AddShifts method to not create
an empty shift when provided an empty slice of shifts.


Bug: 930566
Change-Id: I046bb436ea120643ea12522257c64272248ff5c8
Reviewed-on: https://chromium-review.googlesource.com/c/1460287
Commit-Queue: Ola Karlsson <[email protected]>
Reviewed-by: Scott Lewis-Kelly <[email protected]>
Cr-Commit-Position: refs/heads/master@{#20577}
7 files changed
tree: 7a459394980b7cd26d92ac742e55d569cd5a432a
  1. cmd/
  2. pkg/
  3. BROWSE.md
  4. DEVINFO.md
  5. DOCUMENTATION.md
  6. Makefile
  7. OWNERS
  8. README.md
  9. rotang.go
  10. SWITCH.md
README.md

Rota-NG

This is the home of the Rotation Manager-NG Design Doc.

The goal is replace the current Python script generating the Sheriff rota with this Go AppeEngine service. This to have a better base for running/managing the service and future developments

Source structure.

See BROWSE.md

Switch over from the old service to this.

See SWITCH.md