[Koha-bugs] [Bug 34365] Hold cancellation request workflow cannot be triggered on API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 2 13:22:30 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34365
--- Comment #6 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 154155
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154155&action=edit
Bug 34365: Add cancellation request flow to DELETE /holds
This patch adds a new `x-koha-override` header to allow enforcing the
cancellation request flow for waiting holds.
If the hold is not waiting, the header has no effect.
To test:
1. Apply the tests patch
2. Run:
$ ktd --shell
k$ prove t/db_dependent/api/v1/holds.t
=> FAIL: The endpoint doesn't implement the required logic
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! The endpoint behavior is changed!
5. Sign off :-D
Signed-off-by: Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list