Koha/reports
Fridolin Somers affd0caea5 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>
2022-04-04 16:23:46 +02:00
..
acquisitions_stats.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
bor_issues_top.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
borrowers_out.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
borrowers_stats.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
cash_register_stats.pl Bug 29271: (QA follow-up) Fetch and send descriptions to template 2021-10-21 10:09:51 +02:00
cat_issues_top.pl Bug 28977: Fix cat_issues_top.pl report with strict SQL modes 2022-02-09 22:01:36 -10:00
catalogue_out.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
catalogue_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
dictionary.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
guided_reports.pl Bug 26669: Last Run if report not always updated 2022-04-04 16:23:46 +02:00
issues_avg_stats.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
issues_stats.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
itemslost.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
itemtypes.plugin
manager.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
orders_by_fund.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reports-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reserves_stats.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
serials_stats.pl Bug 28216: Fix vendor list group by in serials statistics wizard 2021-12-14 09:38:10 -10:00