[Koha-bugs] [Bug 36329] Transfer limits should respect `BranchTransferLimitsType`

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 14:01:21 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36329

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 163234
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163234&action=edit
Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType

This patch adds tests for the different cases of `BranchTransferLimitsType`.
It also adds tests for the situation of the consumer sending both limit
criterias on the request.

The controller gets adjusted for this new behavior and the spec gets
documentation added about this.

Bonus: tests are added the right guidelines code, and
BranchTransferLimitsType gets mocked to avoid failures due to existing
data.

To test:
1. Apply this patches
2. Run:
   $ ktd --shell
  k$ qa
=> SUCCESS: All green, and tests pass!
3. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list