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

--- Comment #19 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 199315
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199315&action=edit
Bug 41921: Add ability to run reports as background jobs

Adds Koha::BackgroundJob::RunReport job type, registered with the
long_tasks queue ( dedicated queue planned in bug 42642 )

Test plan
1) Apply patch, run updatedatabase.pl
2) prove t/db_dependent/Koha/BackgroundJob/RunReport.t
3) prove t/db_dependent/Koha/Reports.t
4) prove t/Koha/Auth/Permissions.t
5) Set ReportsRunInBackground to 'always'. Run a saved SQL report
   from the staff client. Confirm a job appears under
   admin/background_jobs.pl with type 'Run report'. Once finished,
   click 'View results' on the job page and confirm the stored
   result renders in the standard report-results view.
6) Set ReportsRunInBackground to 'never'. Run the same report.
   Confirm it executes in the foreground.
7) Set ReportsRunInBackground to 'user_choice'. Run the report,
   confirm the 'choose run mode' page is shown with a Background
   checkbox preselected, and the report runs accordingly.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to