Koha/t/db_dependent/api/v1
Magnus Enger 884b3e71d8 Bug 23391: Hide finished ILL requests
Currently, the main table of ILL requests will display all ILL
requests in the database, regardless of their status. For libraries
with active ILL this quickly leads to a lot of requests being displayed,
and the main page of the ILL module taking a long time to load. This
patch proposes to fix this by introducing the ILLHiddenRequestStatuses
syspref, which can take a pipe-separated list of ILL statuses that
will be hidden from view in the ILL module. This means that the
only way to find a hidden request will be through a report.

To test:
- Apply the patch and make sure the atomic database update is run
- Make sure you have a few ILL requests, with at least two different
  statuses
- Check that all requests are still displayed in the main table of
  ILL requests
- Add one of the statuses* you have in your database to the
  ILLHiddenRequestStatuses syspref, reload the ILL module frontpage
  and verify that requests with the given status are not displayed
- Change the syspref to another status and verify requests with
  that status are now hidden
- Change the syspref to hold both statuses, separated by the pipe
  symbol (e.g.: A|B). Verify that no requests with the given
  statuses are now displayed
- Run the ILL REST API tests, e.g.:
  $ sudo koha-shell -c "prove t/db_dependent/api/v1/illrequests.t" kohadev

* = The ILLHiddenRequestStatuses syspref should hold status codes, like
"REQ" and "NEW", not their human readable counterparts.

Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-07-20 17:25:40 +02:00
..
acquisitions_funds.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
acquisitions_orders.t Bug 25638: Make the tests pass - ignoring the actual issue 2020-06-09 16:15:07 +02:00
acquisitions_vendors.t Bug 25048: Regression tests 2020-04-29 16:24:37 +01:00
advanced_editor_macros.t Bug 25502: Adapt Advanced macros routes to current guidelines 2020-05-19 15:21:16 +01:00
auth.t Bug 25327: Regression tests 2020-05-11 10:02:29 +01:00
auth_authenticate_api_request.t Bug 24003: Regression tests 2020-06-15 10:29:44 +02:00
auth_basic.t Bug 24003: Regression tests 2020-06-15 10:29:44 +02:00
biblios.t Bug 24908: Unit tests 2020-04-29 17:13:30 +01:00
checkouts.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
cities.t Bug 25048: Regression tests 2020-04-29 16:24:37 +01:00
clubs_holds.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
holds.t Bug 25048: Regression tests 2020-04-29 16:24:37 +01:00
illrequests.t Bug 23391: Hide finished ILL requests 2020-07-20 17:25:40 +02:00
items.t Bug 24229: Avoid fetching ALL items in test 2020-05-22 09:33:18 +01:00
libraries.t Bug 25570: (follow-up) Fix tests 2020-06-24 14:31:36 +02:00
oauth.t Bug 25623: Make sure oauth.t rolls back the db 2020-06-15 11:53:36 +02:00
patrons.t Bug 25048: Regression tests 2020-04-29 16:24:37 +01:00
patrons_accounts.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
patrons_password.t Bug 22522: Fix several REST API tests 2020-02-25 13:44:22 +00:00
return_claims.t Bug 22001: Make the DBD error regex less strict 2020-03-31 17:46:21 +01:00
stockrotationstage.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00