[Koha-bugs] [Bug 20996] Fix API response time on ILL request endpoint

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 28 15:21:49 CEST 2018


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

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #79576|0                           |1
        is obsolete|                            |

--- Comment #27 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 79587
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=79587&action=edit
Bug 20996: (follow-up) Fix column name expectation

This bug changes how request metadata is obtained. Previously the
appropriate backend's metadata function would return it. For at least
the FreeForm backend, the metadata property names we title cased. The
datatable JS was expecting this and breaks with the new metadata getting
which is performed in the API controller, which just returns the
property names as they appear in the DB.

This patch changes the expectation of the JS to match what's coming back
from the API

Signed-off-by: Magnus Enger <magnus at enger.priv.no>
Tested by repeatedly loading the API-call
http://intranet/api/v1/illrequests?embed=metadata,patron,capabilities,library
in Chromium and watching the reported time to load the URL. There
is a siginificant decrease in the time with the patches compared to
the time it takes without the patches. I had some concerns along the
way, but they have all been fixed.

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

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


More information about the Koha-bugs mailing list