[Koha-bugs] [Bug 28445] Use the task queue for the batch delete and update items tool

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 9 11:54:15 CEST 2021


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

--- Comment #20 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
As I didn't get a reply I will try to provide a more complete, and maybe more
convincing, answer.

I would like to highlight that those patches are not adding *new* code to
Koha::UI. The code there is moved from current code that is duplicated in
several places: additem and batchmod so far (for the add item form and the
items table).

To make the item batchmod tool use the task queue I had to reuse the same code
from batchmod.pl, and instead of reusing the code as it, I preferred to make it
more robust, and reusable from other places. The code is now in a module,
covered by test, and centralized in a single place.

The next move should be to reuse the same code (methods and BLOCK from inc)
from the remaining places (acq and serial, detail pages, etc.)

If we reach this point we will have all our add item forms and items tables
using the exact same code, covered by tests. That will make any other
improvements easier to implement.

Please see this as a continuous improvement of the current situation, not as
the perfect solution we want to have at the end. I totally agree we should be
using the REST API routes to achieve that goal, but we are not ready at all for
that.
Building the table like it's done here is not achievable right now using the
REST API, and was not the point anyway.

We need the item batch mod tool back running in background mode for 21.11.

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


More information about the Koha-bugs mailing list