To reproduce (on top of Bug 13287) - Set syspref CronjobLog to "Log" - Set syspref PurgeSuggestionsOlderThan to 20 - From console, run misc/cronjobs/purge_suggestions.pl - Check entry in cgi-bin/koha/admin/preferences.pl?op=search&searchfield=log Result in log: misc/cronjobs/purge_suggestions.pl Expected: indication that value of 20 days was used - From console, run misc/cronjobs/purge_suggestions.pl -days 100 Result in log: misc/cronjobs/purge_suggestions.pl Expected: indication that value of 100 days was used
Created attachment 50298 [details] [review] Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used To test: - Apply patch - Set syspref CronjobLog to "Log" - Set syspref PurgeSuggestionsOlderThan e.g. to 20 - From console, run misc/cronjobs/purge_suggestions.pl - Check entry in cgi-bin/koha/admin/preferences.pl?op=search&searchfield=log - Verify that log entry contains number of days (20, same as in syspref) - From console, run misc/cronjobs/purge_suggestions.pl -days 100 - Verify that log entry contains number of days (100, same as in param -days)
Is blocked by Bug 13287 (Failed QA)
Created attachment 80669 [details] [review] Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used To test: - Apply patch - Set syspref CronjobLog to "Log" - Set syspref PurgeSuggestionsOlderThan e.g. to 20 - From console, run misc/cronjobs/purge_suggestions.pl - Check entry in cgi-bin/koha/admin/preferences.pl?op=search&searchfield=log - Verify that log entry contains number of days (20, same as in syspref) - From console, run misc/cronjobs/purge_suggestions.pl -days 100 - Verify that log entry contains number of days (100, same as in param -days) Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Created attachment 80739 [details] [review] Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used To test: - Apply patch - Set syspref CronjobLog to "Log" - Set syspref PurgeSuggestionsOlderThan e.g. to 20 - From console, run misc/cronjobs/purge_suggestions.pl - Check entry in cgi-bin/koha/admin/preferences.pl?op=search&searchfield=log - Verify that log entry contains number of days (20, same as in syspref) - From console, run misc/cronjobs/purge_suggestions.pl -days 100 - Verify that log entry contains number of days (100, same as in param -days) Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Awesome work all! Pushed to master for 18.11
Enhancement, will not be backported to 18.05.x series.