[Koha-bugs] [Bug 26669] Last Run column not updated when report is run publicly (via CoverFlow or elsewhere)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 20 10:11:39 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26669

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #115166|0                           |1
        is obsolete|                            |

--- Comment #7 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 115414
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115414&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list