Bug 28950: Mark serial late when past grace period
authorNick Clemens <nick@bywatersolutions.com>
Thu, 19 May 2022 13:50:59 +0000 (13:50 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Oct 2022 13:42:26 +0000 (10:42 -0300)
commit543454f7655200f12311dd26e824c011cd234813
tree2de37ebf91cb711abfbfe1d3a5cb16f243e8a03c
parentc4161b703e36c21e769e4abb5edc99cfc33af6c2
Bug 28950: Mark serial late when past grace period

This script had some oddities:
- There was a LEFT JOIN to subscription, but no error printed if no subscription
  I changed this to a JOIN as there is a constraint, so this shoudl not happen
- Publisheddate was checked after the SQL, moved into query
- We checked for the next issue, and marked late only if that issue was already expected
  This overruled grace period, which should be the mnarker for a serial being late
  The grace period should be extended if you wish to wait for next issue
- If no next published date, we reported an error on the planneddate
- Script without confirm had no reporting

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/serialsUpdate.pl