Bug 33080: Introduce objects.search_rs, objects.find_rs and objects.to_api
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 6 Jan 2023 15:49:14 +0000 (12:49 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Mar 2023 15:04:01 +0000 (12:04 -0300)
commit67a81d1328ad5f8720b3bf350ac494a0cd26f516
tree7791098269b7a46676a9caee2f8ae392fe1b77a2
parentfaf66db7b15148b8576fd9bb4e85e1fce30bb3c1
Bug 33080: Introduce objects.search_rs, objects.find_rs and objects.to_api

This patch introduces the mentioned helpers, and reimplements
objects.search and objects.find in terms of them.

To test:
1. Apply patch
2. restart_all
3. Check that any API that uses objects.search helper is still running
   (GET /api/v1/items, GET /api/v1/holds, etc)
4. prove t/db_dependent/Koha/REST/Plugin/Objects.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/Plugin/Objects.pm
t/db_dependent/Koha/REST/Plugin/Objects.t