]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 21 Mar 2023 07:41:20 +0000 (07:41 +0000)
commitd1f3c6e806872e597c31a463fd177c704cc55e03
tree04d45254e8bcf54ef6d876b481918a7f6696dcfa
parenta62dd95c215d8a11a0114a48624bff39cfc85188
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>
(cherry picked from commit 67a81d1328ad5f8720b3bf350ac494a0cd26f516)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/Plugin/Objects.pm
t/db_dependent/Koha/REST/Plugin/Objects.t