[Koha-bugs] [Bug 30719] ILL should provide the ability to create batch requests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 9 17:38:25 CEST 2023


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

--- Comment #129 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
(In reply to Tomás Cohen Arazi from comment #126)
> Hi all. I know the history of this bug and am willing to overlook some
> things, but as-is I believe this requires some more work.
> 
> High
> 
> * The GET /illbatches endpoint is not /ill/batchess?
> * Illbatches.pm is too old school. Entirely relying on fetching the whole
> resultset:
>     #FIXME: This should be $c->objects-search
>     my @batches = Koha::Illbatches->search()->as_list;
> * And crafting the response manually, even the 'patron' attribute is done
> manually instead of an embed
> * The request body needs to be manually translated into the DB model:
>     my $batch = Koha::Illbatch->new($body);
>  we have Koha::Illbatches->new_from_api to avoid that. But there's obviously
> a 
>  reason it wasn't done like that.
> 
> Lower
> 
> * Table names, and column names: this is using old school naming for things.
> We can solve it on the API front, but even that is not entirely done.
> 
> Please let me know if there's anything I can do to help you with this.

Hi Tomas, thanks for looking.
Can you please check my latest 2 patches and confirm that this is what's
required?
More work will follow for the other endpoints and for illbatch statuses if so.

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


More information about the Koha-bugs mailing list