[Koha-bugs] [Bug 24502] Add a query language and param (q=) to the API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 2 17:30:14 CET 2020


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99351|0                           |1
        is obsolete|                            |
  Attachment #99352|0                           |1
        is obsolete|                            |

--- Comment #33 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 99946
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99946&action=edit
Bug 24502: object.search also filter by prefetched columns

This patch adds the possibility to object.search helper, to also filter by
prefetched columns.

In order to dynamically add filter parameters, they must be coded as json and
placed in the body of the request, coded as string in 'q' query parameter or as
string in 'x-koha-query' header.

The coded json, is in fact dbix syntax.

To test:
1. apply this patch
2. prove t/Koha/REST/Plugin/Query.t t/db_dependent/Koha/REST/Plugin/Objects.t
3. Sign off

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.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