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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 18 18:48:31 CET 2024


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

--- Comment #10 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 163367
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163367&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

Signed-off-by: David Nind <david at davidnind.com>
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