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

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|This enhancement adds the   |Saved SQL reports can now
      release notes|ability to run reports as   |run as background jobs, so
                   |background jobs. This       |long reports do not need
                   |allows long-running reports |the browser to stay open.
                   |to process their query in   |Results are available from
                   |the background, with        |the Report jobs page
                   |results available to users  |(Reports > Report jobs),
                   |once they've completed. A   |which also lists reports
                   |new report jobs page shows  |that are currently running.
                   |all currently running       |Background runs are
                   |reports and provides access |processed by the background
                   |to all reports previously   |jobs worker, which must be
                   |run as background jobs. 
   |running.
                   |This behavior is controlled |
                   |by a new system preference, |**New system preferences**
                   |ReportsRunInBackground. The |- `ReportsRunInBackground`
                   |system preference options   |(default: never) - how
                   |allow for either all        |saved SQL reports run:
                   |reports to run in the       |`always` (every run is a
                   |foreground, all reports to  |background job), `never`
                   |run in the background, or   |(every run is in the
                   |for the user to choose when |foreground) or
                   |the report is run. Further, |`user_choice` (the user
                   |the execute_reports         |chooses on each run).
                   |permission is split into a  |
                   |permission to execute       |**New permissions**
                   |reports in the foreground   |- `reports >
                   |and a permission to execute |execute_reports_foreground`
                   |reports in the background.  |- run saved SQL reports in
                   |                            |the foreground.
                   |                            |- `reports >
                   |                            |execute_reports_background`
                   |                            |- run saved SQL reports as
                   |                            |background jobs.
                   |                            |
                   |                            |**Configuration**
                   |                            |The concurrency limits in
                   |                            |koha-conf.xml can be set
                   |                            |separately for foreground
                   |                            |and background runs. The
                   |                            |combined limits
                   |                            |(`duplicate_running_reports
                   |                            |_per_user_limit`,
                   |                            |`total_running_reports_per_
                   |                            |user_limit` and
                   |                            |`total_running_reports_per_
                   |                            |instance_limit`) apply to
                   |                            |both. Each per-run-type
                   |                            |limit below defaults to 0
                   |                            |(no limit) and, when set,
                   |                            |replaces the combined limit
                   |                            |for that run type:
                   |                            |-
                   |                            |`foreground_duplicate_runni
                   |                            |ng_reports_per_user_limit`
                   |                            |and
                   |                            |`background_duplicate_runni
                   |                            |ng_reports_per_user_limit`
                   |                            |-
                   |                            |`foreground_total_running_r
                   |                            |eports_per_user_limit` and
                   |                            |`background_total_running_r
                   |                            |eports_per_user_limit`
                   |                            |-
                   |                            |`foreground_total_running_r
                   |                            |eports_per_instance_limit`
                   |                            |and
                   |                            |`background_total_running_r
                   |                            |eports_per_instance_limit`
                   |                            |
                   |                            |Queued background jobs
                   |                            |count towards the
                   |                            |instance-wide total.
                   |                            |
                   |                            |**To enable**
                   |                            |1. Set
                   |                            |`ReportsRunInBackground` to
                   |                            |`always` or `user_choice`
                   |                            |in Administration > System
                   |                            |preferences. It is set to
                   |                            |`never` after upgrade, so
                   |                            |reports still run in the
                   |                            |foreground.
                   |                            |2. Grant
                   |                            |`execute_reports_background
                   |                            |` to staff who should run
                   |                            |reports as background jobs.
                   |                            |
                   |                            |**Upgrade notes**
                   |                            |- The `execute_reports`
                   |                            |permission is replaced by
                   |                            |`execute_reports_foreground
                   |                            |` and
                   |                            |`execute_reports_background
                   |                            |`. Staff who had
                   |                            |`execute_reports` receive
                   |                            |both, so their access is
                   |                            |unchanged.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to