[Bug 43454] New: Add REST endpoint to cancel a transfer (POST /transfers/{transfer_id}/cancellation)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43454 Bug ID: 43454 Summary: Add REST endpoint to cancel a transfer (POST /transfers/{transfer_id}/cancellation) Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Depends on: 33568 Blocks: 42383 Target Milestone: --- The checkin rewrite (bug 42383) needs to cancel transfers through the REST API - both for the checkin workflow itself and so the transfers-to-receive page's "Cancel transfer" action no longer depends on the legacy circ/returns.pl CGI script. This bug adds a POST /transfers/{transfer_id}/cancellation endpoint. It cancels the transfer (with an optional cancellation reason, defaulting to 'Manual') and, when UseRecalls is enabled, reverts an in-transit recall for the item - matching the behaviour of the legacy page. While implementing this, we identified that transfers are already embedded in the API in some places (e.g. the biblio detail item table, introduced by bug 33568) but the Koha::Item::Transfer objects lack a proper to_api_mapping, so they are exposed with their raw database column names (branchtransfer_id, frombranch, tobranch, datesent, daterequested, ...) instead of the conventional API attribute names. This should be adjusted: add the mapping and fix the existing consumers that rely on the unmapped names. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33568 [Bug 33568] Use the REST API to display items on the staff biblio detail view https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 [Bug 42383] Migrate check-in page to Vue -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43454 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE CC| |tomascohen@gmail.com Status|NEW |RESOLVED --- Comment #1 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- There was some overlap with bug 42443, and I decided to move this work into a follow-up there. *** This bug has been marked as a duplicate of bug 42443 *** -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43454 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|42383 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 [Bug 42383] Migrate check-in page to Vue -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org