[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
Mon Jul 24 21:58:58 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34365
--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 153856
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153856&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
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list