Koha/misc/cronjobs
Fridolin Somers 23cf6dd767 Bug 26669: Last Run if report not always updated
The last run of a report is updated only if method execute_query() is
called with report_id.
This whas missing for :
- when report is run publicly
- when report is sent by email
- when report is exported

Patch changes the method signature to use a hash of params, in order to
easily avoid some params.

Test plan :

1) Create a report.
2) Run report.
3) Check the report listing.  Confirm that the last run info on the report is updated.
4) Make report public.
5) Run report via public url.
6) Check the report listing.  Confirm that the last run info on the report IS NOT updated.
7) Schedule the report to run at a given time and e-mailed to an address.
8) After the report runs at the scheduled time, check the report listing.  Confirm that the last run info on the report IS NOT updated.
9) Run report.
10) Export results.
11) Check the report listing.  Confirm that the last run info on the report IS NOT updated AT THE TIME OF THE EXPORT.

Questionable (I don't know if this is addressed):
12) Run report on backend through a cron job and send results via e-mail.
13) Check the report listing.  Confirm that the last run info on the report IS NOT updated.

14) Apply patch.
15) Rerun steps 2-13.  Confirm that steps 3, 6, 8, 11, and 13 DO UPDATE the last run info.

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-04-08 10:46:13 -04:00
..
holds Bug 29704: (RM follow-up) Fix typo sned send 2022-02-04 14:20:51 -05:00
rss Bug 17600: Fix POSIX imports 2021-07-29 14:37:26 +02:00
social_data Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
thirdparty Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
advance_notices.pl Bug 29054: Add verbose check for warn in advance_notices.pl 2022-02-07 07:05:22 -05:00
archive_purchase_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_checkin.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_item_modification_by_age.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_renewals.pl Bug 30222: Remove warning 2022-04-08 09:45:16 -04:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
build_browser_and_cloud.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cart_to_shelf.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
check-url-quick.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cleanup_database.pl Bug 29395: use EXPORT_OK from Koha::Patron::Debarments 2021-11-03 15:40:52 +01:00
cloud-kw.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cloud-sample.conf Fixes bugs #2875-2879 2008-12-29 19:59:44 -06:00
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
create_koc_db.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
crontab.example Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
delete_items.pl Bug 29794: (follow-up) Add license 2022-01-14 08:36:47 -05:00
delete_patrons.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
delete_records_via_leader.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
edi_cron.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
gather_print_notices.pl Bug 29501: Use the default transport 2022-04-08 08:32:28 -04:00
import_webservice_batch.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
longoverdue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
membership_expiry.pl Bug 28456: Add WHERE option to membership_expiry cronjob 2021-08-30 17:02:07 +02:00
merge_authorities.pl Bug 17600: Fix missing C4::AuthoritiesMARC import 2021-07-29 15:34:25 +02:00
notice_unprocessed_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue_notices.pl Bug 30132: Fix POD, show correct usage of Getopt::Long 2022-03-04 08:08:36 -05:00
patron_emailer.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
plugins_nightly.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printoverdues.sh Bug 10127 : Printoverdues.sh should tar only pdf files 2013-07-16 15:47:13 +00:00
process_message_queue.pl Bug 28474: Pass process_message_queue.pl params to before_send_messages plugin hooks 2021-11-03 15:40:52 +01:00
purge_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reconcile_balances.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
remove_temporary_edifiles.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
runreport.pl Bug 26669: Last Run if report not always updated 2022-04-08 10:46:13 -04:00
serialsUpdate.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
share_usage_with_koha_community.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sitemap.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
staticfines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
stockrotation.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
update_patrons_category.pl Bug 29216: Correct --where documentation in update_patrons_category.pl 2021-10-21 10:21:50 +02:00
update_totalissues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
writeoff_debts.pl Bug 28994: Fix logical errors with amount vs amoutoutstanding 2021-11-15 12:38:39 +01:00