]> git.koha-community.org Git - koha.git/commit
Bug 35353: Add REST API endpoint to retrieve old holds
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Mar 2024 15:42:18 +0000 (16:42 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 24 May 2024 08:07:38 +0000 (10:07 +0200)
commitd46b6d96ac0b87e966861c3c224214a5810e9eec
tree84b93158a33855966252c55c7d76ec5e768a8858
parent50742ec62d8e82c5dfefb34c90da1cd73cedec88
Bug 35353: Add REST API endpoint to retrieve old holds

Same as checkout but for holds, we need to provide a way to retrieve old
holds for a patron.

Test plan:
Create some holds for a patron, cancel and fulfill some, then use the
REST API endpoint with the new 'old' flag set to 1
  /api/v1/patrons/42/holds?old=1

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7a32231a52d9d1d5007ad574b8e3b48fd4c99878)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Hold.pm
Koha/Old/Hold.pm
Koha/REST/V1/Holds.pm
Koha/REST/V1/Patrons/Holds.pm
api/v1/swagger/definitions/hold.yaml
api/v1/swagger/paths/holds.yaml
api/v1/swagger/paths/patrons_holds.yaml
t/db_dependent/Koha/Hold.t
t/db_dependent/Koha/Old/Hold.t
t/db_dependent/api/v1/patrons_holds.t